Entities are used as a replacement of reserved characters in HTML document. Characters which are not present on the keyboard, can also be replace by entities. For example, if we use the symbol < or > in our HTML document, then the browser might mix these symbol with tags. Thats why we use entities to display reserved characters. Below is a list of important and most commonly used entities-
Entity | Description | Numerical Reference | Result |
---|---|---|---|
| Non-breaking space |   | |
< | Less than | < | < |
> | Greater than | > | > |
& | Ampersand | & | & |
" | Double quotation mark | " | " |
' | Single quotation mark (apostrophe) | ' | ' |
$ | Dollar | $ | $ |
¢ | Cent | ¢ | ¢ |
£ | Pound | £ | £ |
© | Copyright | © | © |
® | Registered trademark | ® | ® |