HTML Entities
What are HTML Entities?
HTML entities are special codes used to display characters that:
- Are reserved in HTML (like < and >)
- Are not on your keyboard
- Might not display correctly
Entities start with & and end with ;
Reserved Characters
These characters have special meaning in HTML and must be escaped:
| Character | Entity | Description |
|---|---|---|
| < | < | Less than |
| > | > | Greater than |
| & | & | Ampersand |
| " | " | Double quote |
| ' | ' | Single quote |
HTML
CSS
JS
Common Useful Entities
HTML
CSS
JS
Symbols and Special Characters
HTML
CSS
JS
Numeric Codes: You can also use numeric codes:
< for < or < (hex).
Quick Quiz
Which entity creates a non-breaking space?
Enjoying these tutorials?