HTML Entity
What are HTML Entities?
HTML entities are special codes used to display reserved characters (like <, >, &, ") or special symbols (like ©, €, ®) that might otherwise be interpreted as part of HTML.
Commonly Used HTML Entities
Character | Entity Code | Description |
---|---|---|
< | < | Less than (< ) |
> | > | Greater than (> ) |
& | & | Ampersand (& ) |
" | " | Double quotes (" ) |
' | ' | Single quote (' ) |
© | © | Copyright |
® | ® | Registered Trademark |
™ | ™ | Trademark |
₹ | ₹ | Indian Rupee Symbol |
€ | € | Euro Symbol |
£ | £ | British Pound |
¥ | ¥ | Japanese Yen |
∞ | ∞ | Infinity |
✔ | ✔ | Checkmark |
× | × | Multiplication Sign (× ) |
÷ | ÷ | Division Sign (÷ ) |
± | ± | Plus-Minus (± ) |
♥ | ♥ | Heart Symbol ❤️ |
Special HTML Entity: Non-Breaking Space ( )
The entity is used to add extra spaces in HTML.
Example:
<p>Hello World!</p>
This will add extra spaces between "Hello" and "World."