How to use Emoji in HTML

What Are Emojis?

Emojis are small, colorful symbols or icons that represent various emotions, objects, or concepts. They are widely used in text messages, social media, and online communication to express feelings, reactions, and ideas. Emojis can be a great way to make your web content more relatable and visually appealing.

Adding Emojis to Your HTML Content

Step 1:

Add head "charset" tag in head section

<head>
   <meta charset="utf-8">
</head>

Step 2:

Decimal Characters table for HTML code

Emoji Decimal Value Name
👸 &#128120; princess
😀 &#128512; grinning face
😁 &#128513; grinning face with smiling eyes
😂 &#128514; face with tears of joy
😃 &#128515; smiling face with open mouth
😄 &#128516; smiling face with open mouth and smiling eyes
😅 &#128517; smiling face with open mouth and cold sweat
😆 &#128518; smiling face with open mouth and tightly-closed eyes
😇 &#128519; smiling face with halo
😉 &#128521; winking face
😊 &#128522; smiling face with smiling eyes
😋 &#128523; face savouring delicious food
😍 &#128525; smiling face with heart-shaped eyes
😎 &#128526; smiling face with sunglasses
😏 &#128527; smirking face
😓 &#128531; face with cold sweat
😗 &#128535; kissing face
😘 &#128536; face throwing a kiss
😛 &#128539; face with stuck-out tongue
😜 &#128540; face with stuck-out tongue and winking eye
😝 &#128541; face with stuck-out tongue and tightly-closed eyes
😡 &#128545; pouting face
😤 &#128548; face with look of triumph
😥 &#128549; disappointed but relieved face
😨 &#128552; fearful face
😫 &#128555; tired face
😬 &#128556; grimacing face
😭 &#128557; loudly crying face
😱 &#128561; face screaming in fear
😲 &#128562; astonished face
😴 &#128564; sleeping face
😷 &#128567; face with medical mask
🙂 &#128578; slightly smiling face
🙄 &#128580; face with rolling eyes
🤑 &#129297; money-mouth face
🤔 &#129300; thinking face
🤕 &#129301; face with head-bandage
🤗 &#129303; hugging face
🤣 &#129315; rolling on the floor laughing
🤴 &#129332; prince
Emojis and Accessibility

While using emojis can be fun and engaging, it's important to consider accessibility. Some users may have difficulty perceiving or understanding emojis. To address this, provide alternative text or descriptions for emojis to ensure your content remains accessible to all.

Conclusion

Adding emojis to your HTML content is a creative way to inject personality and emotion into your web pages. Whether you're designing a personal blog, e-commerce site, or any other type of website, emojis can make your content more relatable and engaging. Experiment with different emojis and styles to find the perfect balance for your audience.

Remember to use emojis in moderation and consider accessibility for all users. With these tips, you can take your web content to the next level and connect with your audience on a more emotional level.

If you found this guide helpful, please share it with others and start expressing yourself with emojis in your HTML content! 😊 🌟


22nd-October-2023

Adarsh Vishwakarma


Share the Post

Feedback

Comment

Leave a Comment