💡 Tip: Login now to track your course progress and unlock your downloadable certificates instantly!

HTML Emojis

Emojis add emotion, personality, and visual appeal to web pages.
They are part of the Unicode character set, which means you can use them directly in HTML just like text.
HTML supports emojis natively — no extra library or image is required.

How Emojis Work in HTML

Every emoji is represented by a Unicode value — a unique code assigned to that emoji.
You can insert an emoji either by directly typing it or using its HTML entity (Unicode code point).

Syntax

&#x1F600;  <!-- Hexadecimal code -->
&#128512;  <!-- Decimal code -->

Both represent the 😀 emoji.

Example 1: Using Emojis Directly

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>HTML Emojis</title>
</head>
<body>
  <h2>Using Emojis in HTML</h2>
  <p>I love HTML 😍 and CSS 🎨!</p>
  <p>Learning is fun 🚀✨</p>
</body>
</html>

Output:

I love HTML 😍 and CSS 🎨!
Learning is fun 🚀✨

Example 2: Using Unicode (Entity Code)

<p>Smile: &#128512;</p>
<p>Heart: &#10084;</p>
<p>Star: &#11088;</p>
<p>Rocket: &#128640;</p>

Output:

Smile: 😀
Heart: ❤️
Star: ⭐
Rocket: 🚀

Common Emoji Unicode Codes

EmojiDescriptionDecimal CodeHex Code
😀Grinning Face&#128512;&#x1F600;
😂Face with Tears of Joy&#128514;&#x1F602;
😍Heart Eyes&#128525;&#x1F60D;
😎Cool Face&#128526;&#x1F60E;
😢Crying Face&#128546;&#x1F622;
😡Angry Face&#128545;&#x1F621;
❤️Red Heart&#10084;&#x2764;
Star&#11088;&#x2B50;
🔥Fire&#128293;&#x1F525;
🚀Rocket&#128640;&#x1F680;
🌍Earth Globe&#127757;&#x1F30D;
Check Mark&#9989;&#x2705;
💡Light Bulb&#128161;&#x1F4A1;
📞Telephone&#128222;&#x1F4DE;

Important Notes

  • Always include <meta charset="UTF-8"> in your <head> section — this ensures emojis display correctly.
  • Emojis render differently on Windows, macOS, Android, and iOS, depending on the system font.
  • You can also use CSS font-family to control emoji style slightly (e.g., font-family: Segoe UI Emoji;).

Example 3: Styled Emoji Text

<p style="font-size: 24px; font-family: 'Segoe UI Emoji';">
  HTML makes me 😃 and CSS makes me 🎨
</p>

Conclusion

Emojis make web pages more expressive and user-friendly.
With HTML and Unicode, you can easily add thousands of emojis without relying on images — making your design lighter, modern, and fun.

Sign In Form

User your email and password to singn in

Don’t have an account, signup here : 

HTML5 & CSS3

Tools and Tutorials

Want a Website

Want a website for your business ?

Please fill out the details below, so we can reach out to you.

Registration Form

Signup to track your record and much more.

We have sent you an email with a registration link. Please click the link to verify your email address, or enter the 6-digit OTP provided in the email.

Didn't receive the OTP. Regenerate OTP Resend