Online: 103   Members: 4,232

Special HTML Characters

Have you ever tried to print an character such as a < only to have your browser mistake it for an opening statement and ruin the display of your code? Well there is a way around this. Certain ASCII characters require their actual browser code in order to display correctly. Each code begins with a "&", ends with a ";" and the characters special code in the middle. Below are some common examples:

& - &amp;
< - &lt;
> - &gt;
" - &quot;
Space - &nbsp;

There are also special codes for a number of other important items such as the copyright logo, or a degrees sign. Here are a few more key symbols.

Copyright - &copy;
Trademark - &reg;
Plus/Minus - &plusmn;
Degrees - &deg;
Cents - &cent;
1/4 - &frac14;
1/2 - &frac12;
3/4 - &frac34;

Related Tutorials

Useful Resources