HTML Escape Codes
To write an element and attribute into your page so that the code is shown to the user rather than being processed by the browser you need to escape the angled brackets and quotation marks. For example to write <div id="character">
you would write:
<div id="character">
There is also a long list of special characters that HTML 4.0 processors should support. In order for these to appear in your document, you can use either the numerical code or the entity name. For example to insert a copyright symbol you could use either of the following:
© 2008 © 2008
- Hover over your chosen symbol
- The escape code pops up
© © Copyright symbol |
Copyright | © | © |
® ® Registered sign = registered trademark sign |
Registered trademark | ® | ® |
™ ™ Trademark sign |
Trademark | ™ | ™ |
< < Less-than sign |
Less than | < | < |
> > Greater-than sign |
Greater than | > | > |
& & Ampersand |
Ampersand | & | & |
" " Quotation mark / quote |
Quotation mark | " | " |
¢ ¢ Cent sign |
Cent | ¢ | &162; |
£ £ Pound sign |
Pound | £ | &163; |
¤ ¤ Currency sign |
Currency | ¤ | &164; |
¥ ¥ Yen sign = yuan sign |
Yen | ¥ | &165; |
€ € Euro sign |
Euro | € | &8364; |