Entities in HTML
Entities in HTML:
There are some characters in HTML, if you use those characters, it will not print as it is. Like if you use < or >, it will come up with tags. So there is some special code in order to use those characters.
Syntax:
&entity_name;
OR
&#entity_number;
If you use the entity name, it is easy to remember, on the other hand, its have some demerits that it’s no supported by all browser.
Some special character entities:
| Result | Description | Entity Name | Entity Number |
|---|---|---|---|
| non-breaking space | |   | |
| < | less than | < | < |
| > | greater than | > | > |
| & | ampersand | & | & |
| “ | double quotation | " | " |
| ‘ | single quotation | ' | ' |
| ¢ | cent | ¢ | ¢ |
| £ | pound | £ | £ |
| ¥ | yen | ¥ | ¥ |
| € | euro | € | € |
| © | copyright | © | © |
| ® | registered trademark | ® | ® |
