Solved

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

Posted on 2016-10-17
2
32 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
2 Comments
 
LVL 24

Accepted Solution

by:
Dr. Klahn earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Summernote and form validation 10 93
Applying an inline style that applies to child elements 2 36
PHP Undefined Index in HTML Form? 2 31
WordPress Themes 10 34
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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 …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

932 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now