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!
