HTML Entities
You can use HTML Entities to insert special characters to your HTML document.
They look like this (all of these inserts the '©' character):
©
— using the character's entity mnemonic©
— using the character's decimal Unicode number (in this case, 169)©
— using the character's hex Unicode number (in this case, 0xA9)
| LIVE PREVIEW
© 2021 Some Guy
© 2021 Some Other Guy
© 2021 <you get the idea>
Reserved characters
Sometimes, you can't enter these characters normally because they have special meaning in HTML (the browser could interpret them as HTML code).
In those cases, you will need to use their character entities.
Character | Entity | Note — without the use of entity |
---|---|---|
< | < | Interpreted as the beginning of a tag |
> | > | Interpreted as the ending of a tag |
& | & | Interpreted as the beginning of an entity |
" | " | Interpreted as the beginning/ending of an attribute's value |
Read More
To see the list of all HTML entities, grouped by categories, click here.
References
- Entity (MDN) — https://developer.mozilla.org/en-US/docs/Glossary/Entity
- HTML Entity List (FreeFormatter.com) — hhttps://www.freeformatter.com/html-entities.html