HTML | Entities
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 | ♦ | ♦ |
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:
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.



