Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Can I type these characters directly into HTML or do I have to use ASCI code

Posted on 2016-10-17
2
Medium Priority
?
57 Views
Last Modified: 2016-10-17
For music characters like ♯ ♭ Can I just type these into HTML directly from a command on my keyboard, or do I need to enter the ASCI?

I realize I could test it but with browser compatibility varying I wanted to ask an expert to give me the correct response.
0
Comment
Question by:burnedfaceless
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
Dr. Klahn earned 2000 total points
ID: 41847529
When dealing with special characters it is good practice to use the HTML Unicode method per this page examples:

<p>I will display &spades;<p>
<p>I will display &#9824;<p>
<p>I will display &#x2660;<p> 

Open in new window


They will then render correctly in any browser, within the limitations of the characters available to the browser in the selected typeface.

See also the Wikipedia article on HTML and Unicode.
0
 

Author Closing Comment

by:burnedfaceless
ID: 41847534
Thank you sir.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question