You are able to use emojis in your programs using HTML. To use emojis, you can paste the decimal or hexadecimal reference, unicode, or you can use the HTML code or entity followed by a semicolon.
You should not paste the emoji directly into your code. Please note that not every emoji is supported in all browsers.
Reference Type | Prefix | Example | Emoji |
Hexadecimal | &#x | 🎵 | π΅ |
Decimal | &# | 🦁 | π¦ |
Unicode | &#x | ↓ | β |
HTML code | &# | ☀ | β |
HTML entity | & | → | β |
You can 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!