HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
  • Insights
  • Verify Certificate
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials

HTML5andCSS3.org helps developers learn modern frontend skills with practical tutorials, production-ready snippets, and fast web tools built for everyday coding.

Quick Links

  • About Us
  • Contact Us
  • Privacy Policy
  • Copyright
  • Disclaimer

Top Tools

  • Try It Editor
  • JSON Formatter
  • CSS Minifier
  • HTML Minifier
  • Base64 Encoder / Decoder

Contact

  • business@html5andcss3.org
Newsletter

Learn at your own pace, practice with useful tools, and build websites you're proud of.

Β© 2011-2026 html5andcss3.org. All rights reserved.

How to Use

HTML Tutorial

HTML Basics

Introduction to HTMLHTML EditorsHTML StructureHTML Elements & AttributesHTML HeadingsHTML ParagraphsHTML FormattingHTML CommentsHTML Styles

HTML Text and Links

HTML Text FormattingHTML Quotations & CitationsHTML LinksHTML Email Links

HTML Lists and Tables

HTML ListsHTML TablesTable Styling & Borders

HTML Images and Media

HTML ImagesHTML Picture ElementHTML AudioHTML VideoHTML Embed & Object

HTML Forms

HTML Forms OverviewHTML Form ElementsHTML Input TypesHTML Input AttributesHTML Form AttributesHTML Form Validation

HTML Layout

HTML Block vs Inline ElementsHTML Div & SpanHTML Semantic Layout TagsHTML Iframes

Advanced HTML

HTML Entities & SymbolsHTML EmojisHTML Head Element TagsHTML Meta Tags for SEOHTML Responsive Design

HTML References

HTML5 New TagsDeprecated TagsHTML Global AttributesEvent AttributesComplete HTML Tag ListComplete HTML5 ElementsHTML Tutorial PDF
  1. Home
  2. /
  3. Tutorials
  4. /
  5. HTML Tutorial
  6. /
  7. HTML Emojis

Advanced HTML

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

html

πŸ˜€  <!-- Hexadecimal code -->
πŸ˜€  <!-- Decimal code -->

Both represent the πŸ˜€ emoji.

Example 1: Using Emojis Directly

html

<!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)

html

<p>Smile: πŸ˜€</p>
<p>Heart: ❀</p>
<p>Star: ⭐</p>
<p>Rocket: πŸš€</p>

Common Emoji Unicode Codes

EmojiDescriptionDecimal CodeHex Code
πŸ˜€Grinning Face😀😀
πŸ˜‚Face with Tears of Joy😂😂
😍Heart Eyes😍😍
😎Cool Face😎😎
😒Crying Face😢😢
😑Angry Face😡😡
❀️Red Heart❤❤
⭐Star⭐⭐
πŸ”₯Fire🔥🔥
πŸš€Rocket🚀🚀
🌍Earth Globe🌍🌍
βœ…Check Mark✅✅
πŸ’‘Light Bulb💡💡
πŸ“žTelephone📞📞

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

html

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

Browser Support

Chrome
Edge
Firefox
Safari
Opera
IE9+
YesYesYesYesYesYes

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.

PreviousHTML Entities & SymbolsNextHTML Head Element Tags