Tuesday, May 5, 2015

Symbol Entities Supported By HTML/XML


There are many symbols whether it be mathmatic, currency, foreign, or techy that you wish to use at times are not represented on a keyboard. In some cases, you can just copy/paste it from another document, but there is correct way and an easier way. To get these funky symbols into your html page, use html entity name or use an entity number which is a decimal or hexadecimal reference.

A few people have been asking me how to get a ™ aka TradeMark Symbol or a © aka CopyRight Symbol to appear on a web page without having to add an image or trying to copy/paste it into the code. The code below shows a few ways to add it to your pages.

CharNumberEntityDescription
©©©CopyRight Symbol
®®®Registered Sign
™™TradeMark Symbol
∑∑Summation
÷÷÷Division Symbol

Wikipedia provides us with a complete list here of html/xml character entity references http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references


If you like this post and want to see more, follow me on my website www.chadcompton.com
Or if you prefer...

No comments:

Post a Comment

Drop me a line.