HTML Symbols
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:
Example
Display the euro sign:
<p>I will display €</p>
<p>I will display €</p>
<p>I will display €</p>
Will display as:
I will display €
I will display €
I will display €
Try it Yourself »
I will display €
I will display €
Some Mathematical Symbols Supported by HTML
Char | Number | Entity | Description | |
---|---|---|---|---|
∀ | ∀ | ∀ | For all | Try it » |
∂ | ∂ | ∂ | Partial differential | Try it » |
∃ | ∃ | ∃ | There exists | Try it » |
∅ | ∅ | ∅ | Empty sets | Try it » |
∇ | ∇ | ∇ | Nabla | Try it » |
∈ | ∈ | ∈ | Element of | Try it » |
∉ | ∉ | ∉ | Not an element of | Try it » |
∋ | ∋ | ∋ | Contains as member | Try it » |
∏ | ∏ | ∏ | N-ary product | Try it » |
∑ | ∑ | ∑ | N-ary summation | Try it » |
Some Greek Letters Supported by HTML
Char | Number | Entity | Description | |
---|---|---|---|---|
Α | Α | Α | GREEK ALPHA | Try it » |
Β | Β | Β | GREEK BETA | Try it » |
Γ | Γ | Γ | GREEK GAMMA | Try it » |
Δ | Δ | Δ | GREEK DELTA | Try it » |
Ε | Ε | Ε | GREEK EPSILON | Try it » |
Ζ | Ζ | Ζ | GREEK ZETA | Try it » |
Some Other Entities Supported by HTML
Char | Number | Entity | Description | |
---|---|---|---|---|
© | © | © | COPYRIGHT | Try it » |
® | ® | ® | REGISTERED | Try it » |
€ | € | € | EURO SIGN | Try it » |
™ | ™ | ™ | TRADEMARK | Try it » |
← | ← | ← | LEFT ARROW | Try it » |
↑ | ↑ | ↑ | UP ARROW | Try it » |
→ | → | → | RIGHT ARROW | Try it » |
↓ | ↓ | ↓ | DOWN ARROW | Try it » |
♠ | ♠ | ♠ | BLACK SPADE | Try it » |
♣ | ♣ | ♣ | BLACK CLUB | Try it » |
♥ | ♥ | ♥ | BLACK HEART | Try it » |
♦ | ♦ | ♦ | BLACK DIAMOND | Try it » |