blog.averetek

.NET musings, news, and product reviews courtesy of the Averetek development team.

Tuesday, February 07, 2006

 

Symbol Characters in HTML

Ever wonder what's the best way to represent a symbol or special character in HTML? For example, if you want to display the registered trademark symbol (®), there are at least three ways to do so:

1) Enter the raw character - ®
2) Encode it using a numbered character entity - ®
3) Encode it using a named character entity - ®

There are advantages and disadvantages to each approach. After a little searching, I found an excellent article on the subject at http://www.blooberry.com/indexdot/html/tagpages/text.htm. In this case, they recommend going with the numbered character entity. Check out the article to find out why.

Comments: Post a Comment



<< Home

Archives

January 2006   February 2006   April 2006   June 2006  

This page is powered by Blogger. Isn't yours?