Here’s a cheat sheet for commonly used HTML character entities:
Character | Entity | Description |
---|---|---|
< | < | Less than |
> | > | Greater than |
& | & | Ampersand |
" | " | Double quotation mark |
' | ' | Single quotation mark (apostrophe) |
| | Non-breaking space |
© | © | Copyright symbol |
® | ® | Registered trademark symbol |
™ | ™ | Trademark symbol |
¢ | ¢ | Cent sign |
£ | £ | Pound sterling sign |
¥ | ¥ | Yen sign |
€ | € | Euro sign |
§ | § | Section sign |
— | — | Em dash (long dash) |
– | – | En dash (short dash) |
… | … | Ellipsis |
° | ° | Degree symbol |
± | ± | Plus-minus symbol |
× | × | Multiplication symbol |
÷ | ÷ | Division symbol |
These entities are used to represent special characters in HTML. Remember to use the appropriate entity for the character you want to display, especially when dealing with characters that have a special meaning in HTML (like <
, >
, and &
).