Symbols or letters that are not present on your keyboard can be added to HTML using entities.
HTML Symbol Entities
HTML entities were described in the previous chapter.
Many mathematical, technical, and currency symbols, are not present on a normal keyboard.
To add such symbols to an HTML page, you can use the entity name or the entity number (a decimal or a hexadecimal reference) for the symbol:
Display the euro sign:
<p>I will display €</p>
<p>I will display €</p>
<p>I will display €</p>
Some Mathematical Symbols Supported by HTML
Char
Number
Entity
Description
∀
∀
∀
For all
∂
∂
∂
Partial differential
∃
∃
∃
There exists
∅
∅
∅
Empty sets
∇
∇
∇
Nabla
∈
∈
∈
Element of
∉
∉
∉
Not an element of
∋
∋
∋
Contains as member
∏
∏
∏
N-ary product
∑
∑
∑
N-ary summation
Some Greek Letters Supported by HTML
Char | Number | Entity | Description | |
---|---|---|---|---|
Α | Α | Α | GREEK ALPHA |
Β | Β | Β | GREEK BETA |
Γ | Γ | Γ | GREEK GAMMA |
Δ | Δ | Δ | GREEK DELTA |
Ε | Ε | Ε | GREEK EPSILON |
Ζ | Ζ | Ζ | GREEK ZETA |
Some Other Entities Supported by HTML
Char | Number | Entity | Description | |
---|---|---|---|---|
© | © | © | COPYRIGHT |
® | ® | ® | REGISTERED |
€ | € | € | EURO SIGN |
™ | ™ | ™ | TRADEMARK |
← | ← | ← | LEFT ARROW |
↑ | ↑ | ↑ | UP ARROW |
→ | → | → | RIGHT ARROW |
↓ | ↓ | ↓ | DOWN ARROW |
♠ | ♠ | ♠ | SPADE |
♣ | ♣ | ♣ | CLUB |
♥ | ♥ | ♥ | HEART |
♦ | ♦ | ♦ | DIAMOND |