HTML: Working with Special Characters - Special Characters/Entities in HTML
(Page 5 of 5 )
Result | Entity Name | Entity Number | Result | Entity Name | Entity Number | Result | Entity Name | Entity Number |
" | " | " | Ð | Ð | Ð | È | È | È |
' | ' (does not work in IE) | ' | Ñ | Ñ | Ñ | É | É | É |
& | & | & | Ò | Ò | Ò | Ê | Ê | Ê |
< | < | < | Ó | Ó | Ó | Ë | Ë | Ë |
> | > | > | Ô | Ô | Ô | Ì | Ì | Ì |
non-breaking space | |   | Õ | Õ | Õ | Í | Í | Í |
¡ | ¡ | ¡ | Ö | Ö | Ö | Î | Î | Î |
¤ | ¤ | ¤ | Ø | Ø | Ø | Ï | Ï | Ï |
¢ | ¢ | ¢ | Ù | Ù | Ù | ” | ” | ” |
£ | £ | £ | Ú | Ú | Ú | „ | „ | „ |
¥ | ¥ | ¥ | Û | Û | Û | † | † | † |
¦ | ¦ | ¦ | Ü | Ü | Ü | ‡ | ‡ | ‡ |
§ | § | § | Ý | Ý | Ý | … | … | … |
¨ | ¨ | ¨ | Þ | Þ | Þ | ‰ | ‰ | ‰ |
© | © | © | ß | ß | ß | ‹ | ‹ | ‹ |
ª | ª | ª | à | à | à | › | › | › |
« | « | « | á | á | á | € | € | € |
¬ | ¬ | ¬ | â | â | â | “ | “ | “ |
| ­ | ­ | ã | ã | ã | ˆ | ˆ | ˆ |
® | ® | ® | ä | ä | ä | ˜ | ˜ | ˜ |
™ | ™ | ™ | å | å | å | en space |   |   |
¯ | ¯ | ¯ | æ | æ | æ | em space |   |   |
° | ° | ° | ç | ç | ç | thin space |   |   |
± | ± | ± | è | è | è | zero width non-joiner | ‌ | ‌ |
² | ² | ² | é | é | é | zero width joiner | ‍ | ‍ |
³ | ³ | ³ | ê | ê | ê | left-to-right mark | ‎ | ‎ |
´ | ´ | ´ | ë | ë | ë | right-to-left mark | ‏ | ‏ |
µ | µ | µ | ì | ì | ì | – | – | – |
¶ | ¶ | ¶ | í | í | í | — | — | — |
· | · | · | î | î | î | ‘ | ‘ | ‘ |
¸ | ¸ | ¸ | ï | ï | ï | ’ | ’ | ’ |
¹ | ¹ | ¹ | ð | ð | ð | ‚ | ‚ | ‚ |
º | º | º | ñ | ñ | ñ | À | À | À |
» | » | » | ò | ò | ò | Á | Á | Á |
¼ | ¼ | ¼ | ó | ó | ó | Â | Â | Â |
½ | ½ | ½ | ô | ô | ô | Ã | Ã | Ã |
¾ | ¾ | ¾ | õ | õ | õ | Ä | Ä | Ä |
¿ | ¿ | ¿ | ö | ö | ö | Å | Å | Å |
× | × | × | ø | ø | ø | Æ | Æ | Æ |
÷ | ÷ | ÷ | ù | ù | ù | Ç | Ç | Ç |
ú | ú | ú | Œ | Œ | Œ | ÿ | ÿ | ÿ |
û | û | û | œ | œ | œ | ý | ý | ý |
ü | ü | ü | Š | Š | Š | þ | þ | þ |
š | š | š | Ÿ | Ÿ | Ÿ |
|
|
|
An entity is made up of three parts: the ampersand (&), the name of the entity or the # symbol followed by the number of the entity, and ending in a semicolon. To write a double quote in html, you would use either " or "
Lastly, the entity creates a non-breakable space. If you write something like “Hi there are three spaces,” HTML will automatically remove those spaces. In addition to using the preformatted text tag, we can use entity to force the spaces to stay. If I wrote this code:
<html>
<body>
<p>Hi nbsp; there are three spaces</p>
</body>
</html>
It would display: “Hi there are three spaces”, as I had intended.
Well that’s it for this tutorial. In our next exciting episode, we will learn to work with Frames and tables. So be sure to check back often for the next installment.
Till then…
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |