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

Recommended Posts:
- Adding HTML entities using CSS content
- HTML | <html> Tag
- HTML Course | Structure of an HTML Document
- HTML Course | Basics of HTML
- HTML | DOM HTML Object
- HTML | <html> xmlns Attribute
- What is the difference between <html lang="en'> and <html lang="en-US'> ?
- Inline HTML Helper - HTML Helpers in ASP.NET MVC
- HTML | scoped Attribute
- HTML | DOM lang Property
- HTML | DOM Style backgroundClip Property
- HTML | DOM Style borderTop Property
- HTML | <th> valign Attribute
- HTML | <col> align Attribute
- HTML | DOM Meter max Property
- HTML | poster Attribute
- HTML | DOM fullscreenerror Event
- HTML | DOM onvolumechange Event
- HTML | DOM Input Hidden value Property
- HTML | DOM onopen Event
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : MohdArsalan


