Emojis may look like small images, but they are actually text characters.
They are part of the Unicode (UTF-8) character set.
Unicode (UTF-8) includes thousands of symbols, characters, and emojis from around the world.
To properly display emojis on a webpage, you must set the character encoding to UTF-8 inside the <head> section:
Without this setting, some emojis may not display correctly.
You can add emojis in two ways:
Both methods will display the emoji.
| Emoji | HTML Code |
|---|---|
| 😀 | 😀 |
| 😁 | 😁 |
| 😂 | 😂 |
| 😃 | 😃 |
| 😄 | 😄 |
| 😅 | 😅 |
| 😆 | 😆 |
| 😇 | 😇 |
| 🗵 | 🗵 |
| 🗶 | 🗶 |