Entities can also be used to add symbols that you don’t have on your keyboard. There are a lot of math, science, and money symbols that you can’t find on a normal keyboard. To add these symbols to an HTML page, we have to use HTML entity names.
If there is no entity name, you can use a decimal, hexadecimal, or entity number instead.
Example
<!DOCTYPE html>
<html>
<body>
<h3> Symbols Example</h3>
<p>Indian Rupee symbol <b>₹<b></p>
<p>Dollar symbol <b>#36;</b></p>
</body>
</html>
HTML Entities for Symbols
In the last chapter, we talked about HTML entities.
A normal keyboard doesn’t have a lot of symbols for math, science, and money.
You can use the entity name or the entity number (a decimal or hexadecimal reference) for the symbol to add it to an HTML page.
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 Symbols Supported by HTML
Char | Number | Entity | Description |
---|---|---|---|
Α | Α | Α | GREEK CAPITAL LETTER ALPHA |
Β | Β | Β | GREEK CAPITAL LETTER BETA |
Γ | Γ | Γ | GREEK CAPITAL LETTER GAMMA |
Δ | Δ | Δ | GREEK CAPITAL LETTER DELTA |
Ε | Ε | Ε | GREEK CAPITAL LETTER EPSILON |
Ζ | Ζ | Ζ | GREEK CAPITAL LETTER ZETA |
Some Symbols Supported by HTML
Char | Number | Entity | Description |
---|---|---|---|
© | © | © | COPYRIGHT SIGN |
® | ® | ® | REGISTERED SIGN |
€ | € | € | EURO SIGN |
™ | ™ | ™ | TRADEMARK |
← | ← | ← | LEFTWARDS ARROW |
↑ | ↑ | ↑ | UPWARDS ARROW |
→ | → | → | RIGHTWARDS ARROW |
↓ | ↓ | ↓ | DOWNWARDS ARROW |
♠ | ♠ | ♠ | BLACK SPADE SUIT |
♣ | ♣ | ♣ | BLACK CLUB SUIT |
♥ | ♥ | ♥ | BLACK HEART SUIT |
♦ | ♦ | ♦ | BLACK DIAMOND SUIT |