Clean • Professional
HTML entities are special codes used to display reserved characters, symbols, or invisible spaces in a webpage. They are essential because some characters, like < or >, have a special meaning in HTML and cannot be used directly.
Why Use HTML Entities:
<, >, &) and need to be written as entities to appear correctly. ) help control spacing without breaking lines.Common HTML Entities:
| Entity | Symbol | Description |
|---|---|---|
< | < | Less-than symbol |
> | > | Greater-than symbol |
& | & | Ampersand |
| (space) | Non-breaking space |
© | © | Copyright symbol |
® | ® | Registered trademark |
™ | ™ | Trademark |
" | " | Double quotation mark |
' | ' | Single quotation mark |
Example:
<p>5 < 10 & 10 > 5</p>
<p>© 2025 My Website</p>Output:

HTML supports emojis using Unicode (UTF-8) encoding. Emojis can be added in two main ways:
&#code; or hexadecimal codes with ode;.<p>I ❤️ HTML 😃</p>
<p>Smile: 😀</p>
<p>Thumbs up: 👍</p>Output :

<meta charset="UTF-8">