Entity: Symbols

Many mathematical, technical, and currency symbols, are not present on a normal keyboard. To add these symbols to an HTML page, you can use an HTML entity name, entity number or the decimal (or hexadecimal) reference. For example, the entities for the euro dollar are:

entity name = €
entity number = €
decimal/hexadecimal reference = €
HTML file: Displayed by browser:
<p>Using the entity name displays &euro;</p>
<p>Using the entity number displays &#8364;</p>
<p>Using the decimal/hexadecimal reference displays &#x20AC;</p>

Using the entity name displays €

Using the entity number displays €

Using the decimal/hexadecimal reference displays €

If you use an HTML entity name or a hexadecimal number, the character will always display correctly. This is independent of what character set (encoding) your page uses!

Back button Table of Contents Next button