HTML entities are strigns inside HTML code that start with ampersand &
and end with semicolon ;
. They allow you to add wide variety of characters to your HTML code.
For example <
and >
characters are reserved in HTML because they are used to enclose HTML tags. But if you need to display one of them on the page you can use >
to display >
and <
for <
.
HTML entities can be referenced by name, like we did with >
and <
, but they also have numeric references: hexadecimal and decimal.
For examle >
can also be referenced as >
and <
can be referenced as <
.
Some of the entities don’t have named reference and can only be referenced by their decimal or hexadecimal reference. Like for example celsius sign ℃
Here is a list of some popular HTML entities:
Character | Entity | Hexadecimal | Decimal | Name |
---|---|---|---|---|
© | © | © | © | COPYRIGHT SIGN |
® | ® ® | ® | ® | REGISTERED SIGN |
™ | ™ | ™ | ™ | TRADE MARK SIGN |
> | > | > | > | GREATER-THAN SIGN |
< | < | < | < | LESS-THAN SIGN |
; | ; | ; | ; | SEMICOLON |
& | & | & | & | AMPERSAND |
” | " | " | " | QUOTATION MARK |
# | # | # | # | NUMBER SIGN |
★ | ★ ★ | ★ | ★ | BLACK STAR |
☆ | ☆ | ☆ | ☆ | WHITE STAR |
✂ | ✂ | ✂ | BLACK SCISSORS | |
✓ | ✓ ✓ | ✓ | ✓ | CHECK MARK |
✗ | ✗ | ✗ | ✗ | BALLOT X |
✩ | ✩ | ✩ | STRESS OUTLINED WHITE STAR | |
✪ | ✪ | ✪ | CIRCLED WHITE STAR | |
❞ | ❞ | ❞ | HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT | |
❤ | ❤ | ❤ | HEAVY BLACK HEART | |
← | ← ← ← ← ← | ← | ← | LEFTWARDS ARROW |
↑ | ↑ ↑ ↑ ↑ | ↑ | ↑ | UPWARDS ARROW |
→ | → → → → → | → | → | RIGHTWARDS ARROW |
↓ | ↓ ↓ ↓ ↓ | ↓ | ↓ | DOWNWARDS ARROW |
€ | € | € | € | EURO SIGN |
▶ | ▶ | ▶ | BLACK RIGHT-POINTING TRIANGLE | |
▽ | ▽ ▽ | ▽ | ▽ | WHITE DOWN-POINTING TRIANGLE |
◉ | ◉ | ◉ | FISHEYE | |
∑ | ∑ ∑ | ∑ | ∑ | N-ARY SUMMATION |
ℹ | ℹ | ℹ | INFORMATION SOURCE | |
№ | № | № | № | NUMERO SIGN |
℗ | ℗ | ℗ | ℗ | SOUND RECORDING COPYRIGHT |
℃ | ℃ | ℃ | DEGREE CELSIUS | |
℉ | ℉ | ℉ | DEGREE FAHRENHEIT |
Top comments (0)