You can include emojis in your HTML programs by using their decimal or hexadecimal codes, Unicode values, or the corresponding HTML entity ending with a semicolon.
⚠️ - Pasting the emoji directly into your code will not display the emoji
- Not all emojis are supported in every browser
Reference Type | Prefix | Example | Emoji |
Hexadecimal | &#x | 🎵 | 🎵 |
Decimal | &# | 🦁 | 🦁 |
Unicode | &#x | ↓ | ↓ |
HTML code | &# | ☀ | ☀ |
HTML entity | & | → | → |
View these emojis in a program here!
Interested in seeing emojis that differ from the ones listed in the table? Check out the reference websites listed below to see other examples of emojis and symbols:
Still have questions? Ask your teacher to learn more!
