Skip to main content

For Students: Using Emojis in CodeHS

Learn how to use emojis in HTML programs.

Sara Jenis avatar
Written by Sara Jenis
Updated over 2 weeks ago

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!

Did this answer your question?