HTML provides some method to display reserved character. Reserved characters are those characters which are either reserved for HTML or those which are not present in the basic keyboard.
For Example: '<' is already reserved in HTML language. Sometimes this character need to display on the web page which create ambiguity in code. Along with these are the character which are normally not present in basic keyboard ( £, ¥, €, © ) etc.
HTML provide some Entity name and Entity number to use this symbols. Entity number is easy to learn. Some useful Symbol with their entity name and Entity numbers are as follows.
Notation | Symbols | Entity name | Entity Number |
---|---|---|---|
non-breaking space | |   | |
< | less than | < | < |
® | registered trademark | ® | ® |
© | copyright | © | © |
€ | euro | € | € |
¥ | yen | ¥ | ¥ |
£ | pound | £ | £ |
¢ | cent | ¢ | ¢ |
" | double quotation mark | " | " |
& | ampersand | & | & |
> | greater than | > | > |
∂ | PARTIAL DIFFERENTIAL | ∂ | ∂< |
∃ | THERE EXISTS | ∃ | ∃ |
∅ | EMPTY SETS | ∅ | ∅ |
∇ | NABLA | ∇ | ∇ |
∈ | ELEMENT OF | ∈ | ∈ |
∉ | NOT AN ELEMENT OF | ∉ | ∉ |
∋ | CONTAINS AS MEMBER | &#∋ | 8715 |
∏ | N-ARY PRODUCT | ∏ | ∏ |
∑ | N-ARY SUMMATION | ∑ | ∑ |
Α | Alpha | Α | Α | Β | Beta | Β | Β |
Γ | Gamma | Γ | Γ |
Δ | delta | Δ | Δ |
Ε | Epsilon | Ε | Ε |
Ζ | Zeta | Ζ | Ζ |
♥ | BLACK HEART SUIT | ♥ | ♥ |
♣ | BLACK CLUB SUIT | ♣ | ♣ |
♠ | BLACK SPADE SUIT | ♠ | ♠ |
↓ | DOWNWARDS ARROW | ↓ | ↓ |
→ | RIGHTWARDS ARROW | → | → |
↑ | UPWARDS ARROW | ↑ | ↑ |
← | LEFTWARDS ARROW | ← | ← |
™ | TRADEMARK | ™ | ™ |
♦ | BLACK DIAMOND SUIT | ♦ | ♦ |
° | degree | ° | ° |
∞ | infinity | ∞ | ∞ |
‰ | per-mille | ‰ | ‰ |
⋅ | multiplication dot | ⋅ | ⋅ |
± | plus-minus | ± | ± |
† | hermitian | † | † |
— | – | — | — |
¬ | – | ¬ | ¬ |
µ | Micro (mu) | µ | µ |
⊥ | falsum | ⊥ | ⊥ |
∥ | parallel | ∥ | ∥ |
Example:
<!DOCTYPE html> < html > < head > < title >HTML Entities</ title > </ head > < body > < p >Showing euro €</ p > < p >Showing cent ¢</ p > < p >Showing Copyright ©</ p > < p >Showing BLACK DIAMOND SUIT ♦</ p > < p >Showing TRADEMARK ™</ p > </ body > </ html > |
Output