A reference can be used to add special characters/symbols to an HTML webpage, an entity name, an entity number, or hexadecimal.
There are three methods for adding an ampersand in HTML:
Method | Ampersand symbol |
---|---|
Entity number | & |
Entity name | & |
Hexadecimal reference | & |