Emojis are characters from the UTF-8 character set. They are widely used on web pages to add visual interest and personality to content.
Emojis look like images, but they are actually letters or characters in the UTF-8 character set. Many UTF-8 characters cannot be typed on a standard keyboard, so we use their hexadecimal numbers to display them in HTML.
<meta charset="UTF-8"> in your HTML <head> section.
You can display emojis using their HTML entity decimal or hex code:
<p>I will display 😀</p> <!-- Decimal -->
<p>I will display 😀</p> <!-- Hexadecimal -->
I will display 😀
I will display 😀
You can also paste emoji characters directly into your HTML — they render fine in UTF-8:
<p>I love coding 💗</p>
<p>Let's go 🚀</p>
I love coding 💗
Let's go 🚀
Since emojis are characters, you can change their size with CSS font-size:
<p style="font-size: 16px;">😀</p>
<p style="font-size: 32px;">😀</p>
<p style="font-size: 64px;">😀</p>
😀 (16px)
😀 (32px)
😀 (64px)
| Emoji | Description | Decimal Code | Hex Code |
|---|---|---|---|
| 😀 | Grinning face | 😀 | 😀 |
| 😁 | Beaming face with smiling eyes | 😁 | 😁 |
| 😂 | Face with tears of joy | 😂 | 😂 |
| 😄 | Grinning squinting face | 😄 | 😄 |
| 😇 | Slightly smiling face | 😇 | 😇 |
| 😍 | Smiling face with heart-eyes | 😍 | 😍 |
| 😜 | Winking face with tongue | 😜 | 😜 |
| 😩 | Sad but relieved face | 😩 | 😩 |
| 🙄 | Unamused face | 🙄 | 🙄 |
| 💗 | Purple heart | 💗 | 💗 |
| 🚀 | Rocket | 🚀 | 🚀 |
| 💻 | Laptop | 💻 | 💻 |
| 🎉 | Party popper | 🎉 | 🎉 |
| 🔥 | Fire | 🔥 | 🔥 |
| 🌎 | Globe | 🌎 | 🌎 |
| 🛠 | Hammer and wrench | 🛠 | 🛠 |
&#x... format.