Emojis have become an integral part of modern web communication. They add emotion, personality, and visual interest to text content. In HTML, emojis can be used directly as Unicode characters, through HTML entities, or as images. This guide covers everything you need to know about using emojis in HTML, from basic implementation to best practices and accessibility considerations.
Using Emojis in HTML
The below examples demonstrate how to use emojis in HTML:
Direct Unicode Input
The simplest way to use emojis is to type them directly into your HTML code by holding down the "Windows" key and pressing the period (.) key on Windows, or using "Control + Command + Space" on Mac to open the emoji picker. You can then select the desired emoji to insert it into your HTML content. Here are some examples of direct emoji input in HTML:
<!-- Direct emoji input -->
<p>Hello World! ๐</p>
<p>I love pizza! ๐</p>
<p>Great job! ๐</p>
<p>Weather today: โ๏ธ</p>
<p>Feeling happy ๐</p>
HTML Entities for Emojis
Some emojis can also be represented using HTML numeric entities:
<!-- Using HTML entities -->
<p>Smiley face: 😀</p> <!-- ๐ -->
<p>Thumbs up: 👍</p> <!-- ๐ -->
<p>Heart: ❤</p> <!-- โค๏ธ -->
<p>Star: ⭐</p> <!-- โญ -->
<p>Fire: 🔥</p> <!-- ๐ฅ -->
Hexadecimal Entities
Alternatively, you can use hexadecimal entities to represent emojis:
<!-- Using hexadecimal entities -->
<p>Smiley face: 😊</p> <!-- ๐ -->
<p>Thumbs up: 👍</p> <!-- ๐ -->
<p>Heart: ❤</p> <!-- โค๏ธ -->
<p>Star: ⭐</p> <!-- โญ -->
<p>Fire: 🔥</p> <!-- ๐ฅ -->
Popular Emoji Categories
Emojis are categorized into various groups based on their themes. Below are some popular categories along with examples of commonly used emojis in each category.
Faces and Emotions
Emojis representing facial expressions and emotions are widely used to convey feelings and reactions in digital communication. Here are some examples of popular face emojis:
<!-- Smiling faces -->
<p>Grinning face: ๐</p>
<p>Smiling face with smiling eyes: ๐</p>
<p>Smiling face with halo: ๐</p>
<p>Smiling face with hearts: ๐ฅฐ</p>
<p>Smiling face with tear: ๐ฅฒ</p>
<!-- Neutral faces -->
<p>Neutral face: ๐</p>
<p>Expressionless face: ๐</p>
<p>Face without mouth: ๐ถ</p>
<p>Rolling on the floor laughing: ๐คฃ</p>
<p>Face with tears of joy: ๐</p>
<!-- Sad faces -->
<p>Loudly crying face: ๐ญ</p>
<p>Crying face: ๐ข</p>
<p>Pleading face: ๐ฅบ</p>
<p>Disappointed face: ๐</p>
<p>Worried face: ๐</p>
Gestures and Body Parts
Emojis depicting hand gestures and body parts are commonly used to express actions, greetings, and physical attributes. Here are some examples of popular gesture and body part emojis:
<!-- Hand gestures -->
<p>Thumbs up: ๐</p>
<p>Thumbs down: ๐</p>
<p>OK hand: ๐</p>
<p>Victory hand: โ๏ธ</p>
<p>Raised hand: ๐</p>
<p>Waving hand: ๐</p>
<p>Clapping hands: ๐</p>
<p>Open hands: ๐</p>
<!-- Body parts -->
<p>Brain: ๐ง </p>
<p>Heart: โค๏ธ</p>
<p>Lungs: ๐ซ</p>
<p>Eye: ๐๏ธ</p>
<p>Ear: ๐</p>
<p>Nose: ๐</p>
<p>Mouth: ๐</p>
<p>Tongue: ๐
</p>
Food and Drink Emojis
Emojis representing food and drink items are widely used to express dietary preferences and share meals in digital communication. Here are some examples of popular food and drink emojis:
Popular Food Items
Here are some commonly used food emojis:
<!-- Fruits -->
<p>Apple: ๐</p>
<p>Banana: ๐</p>
<p>Grapes: ๐</p>
<p>Strawberry: ๐</p>
<p>Watermelon: ๐</p>
<p>Tangerine: ๐</p>
<p>Lemon: ๐</p>
<p>Pineapple: ๐</p>
<!-- Vegetables -->
<p>Tomato: ๐
</p>
<p>Carrot: ๐ฅ</p>
<p>Corn: ๐ฝ</p>
<p>Hot pepper: ๐ถ๏ธ</p>
<p>Leafy green: ๐ฅฌ</p>
<p>Broccoli: ๐ฅฆ</p>
<p>Mushroom: ๐</p>
<p>Eggplant: ๐</p>
<!-- Prepared foods -->
<p>Pizza: ๐</p>
<p>Hamburger: ๐</p>
<p>Fries: ๐</p>
<p>Hot dog: ๐ญ</p>
<p>Taco: ๐ฎ</p>
<p>Burrito: ๐ฏ</p>
<p>Ramen: ๐</p>
<p>Spaghetti: ๐</p>
Beverages
Here are some commonly used drink emojis:
<!-- Hot drinks -->
<p>Coffee: โ</p>
<p>Teacup without handle: ๐ต</p>
<p>Sake: ๐ถ</p>
<p>Bottle with popping cork: ๐พ</p>
<p>Wine glass: ๐ท</p>
<p>Cocktail glass: ๐ธ</p>
<p>Tropical drink: ๐น</p>
<p>Beer mug: ๐บ</p>
<!-- Cold drinks -->
<p>Clinking beer mugs: ๐ป</p>
<p>Clinking glasses: ๐ฅ</p>
<p>Tumbler glass: ๐ฅ</p>
<p>Cup with straw: ๐ฅค</p>
<p>Ice cream: ๐จ</p>
<p>Shaved ice: ๐ง</p>
<p>Ice cream: ๐ฆ</p>
<p>Doughnut: ๐ฉ</p>
Animals and Nature Emojis
Emojis representing animals and nature elements are widely used to express affection for wildlife and appreciation for the natural world. Here are some examples of popular animal and nature emojis:
Animals
Here are some commonly used animal emojis:
<!-- Mammals -->
<p>Dog: ๐ถ</p>
<p>Cat: ๐ฑ</p>
<p>Mouse: ๐ญ</p>
<p>Hamster: ๐น</p>
<p>Rabbit: ๐ฐ</p>
<p>Fox: ๐ฆ</p>
<p>Bear: ๐ป</p>
<p>Panda: ๐ผ</p>
<p>Koala: ๐จ</p>
<p>Tiger: ๐ฏ</p>
<!-- Birds -->
<p>Chicken: ๐</p>
<p>Rooster: ๐</p>
<p>Hatching chick: ๐ฃ</p>
<p>Baby chick: ๐ค</p>
<p>Front-facing baby chick: ๐ฅ</p>
<p>Bird: ๐ฆ</p>
<p>Penguin: ๐ง</p>
<p>Dove: ๐๏ธ</p>
<p>Eagle: ๐ฆ
</p>
<p>Owl: ๐ฆ</p>
<!-- Aquatic animals -->
<p>Fish: ๐</p>
<p>Tropical fish: ๐ </p>
<p>Blowfish: ๐ก</p>
<p>Shark: ๐ฆ</p>
<p>Octopus: ๐</p>
<p>Snail: ๐</p>
<p>Butterfly: ๐ฆ</p>
<p>Bug: ๐</p>
<p>Ant: ๐</p>
<p>Honeybee: ๐</p>
Nature Elements
Here are some commonly used nature emojis:
<!-- Weather -->
<p>Sun: โ๏ธ</p>
<p>Cloud: โ๏ธ</p>
<p>Umbrella: โ๏ธ</p>
<p>Snowman: โ๏ธ</p>
<p>Comet: โ๏ธ</p>
<p>Rainbow: ๐</p>
<p>Lightning: โก</p>
<p>Tornado: ๐ช๏ธ</p>
<p>Fog: ๐ซ๏ธ</p>
<p>Wind face: ๐ฌ๏ธ</p>
<!-- Plants and trees -->
<p>Evergreen tree: ๐ฒ</p>
<p>Deciduous tree: ๐ณ</p>
<p>Palm tree: ๐ด</p>
<p>Cactus: ๐ต</p>
<p>Herb: ๐ฟ</p>
<p>Shamrock: ๐</p>
<p>Four leaf clover: ๐</p>
<p>Pine decoration: ๐</p>
<p>Flower: ๐ธ</p>
<p>Blossom: ๐ผ</p>
Travel and Places Emojis
Emojis representing travel and places are useful for expressing ideas about different locations and modes of transportation. Here are some examples:
Transportation
Here are some commonly used transportation emojis:
<!-- Vehicles -->
<p>Automobile: ๐</p>
<p>Taxi: ๐</p>
<p>Bus: ๐</p>
<p>Trolleybus: ๐</p>
<p>Fire engine: ๐</p>
<p>Police car: ๐</p>
<p>Ambulance: ๐</p>
<p>Minibus: ๐</p>
<p>Truck: ๐</p>
<p>Articulated lorry: ๐</p>
<!-- Air travel -->
<p>Airplane: โ๏ธ</p>
<p>Small airplane: ๐ฉ๏ธ</p>
<p>Airplane departure: ๐ซ</p>
<p>Airplane arrival: ๐ฌ</p>
<p>Parachute: ๐ช</p>
<p>Seat: ๐บ</p>
<p>Helicopter: ๐</p>
<p>Suspension railway: ๐ </p>
<p>Mountain cableway: ๐ก</p>
<p>>Aerial tramway: ๐</p>
<!-- Water transport -->
<p>Ship: ๐ข</p>
<p>Speedboat: ๐ค</p>
<p>Sailboat: โต</p>
<p>Canoe: ๐ถ</p>
<p>Rowboat: ๐ถ</p>
<p>Motor boat: ๐ฅ๏ธ</p>
<p>Ferry: โด๏ธ</p>
<p>Passenger ship: ๐ณ๏ธ</p>
<p>Anchor: โ</p>
<p>Ring buoy: ๐๏ธ</p>
Buildings and Places
Here are some commonly used building and place emojis:
<!-- Buildings -->
<p>House: ๐ </p>
<p>House with garden: ๐ก</p>
<p>Office building: ๐ข</p>
<p>Japanese post office: ๐ฃ</p>
<p>Post office: ๐ค</p>
<p>Hospital: ๐ฅ</p>
<p>Bank: ๐ฆ</p>
<p>Hotel: ๐จ</p>
<p>Love hotel: ๐ฉ</p>
<p>Convenience store: ๐ช</p>
<!-- Landmarks -->
<p>Statue of Liberty: ๐ฝ</p>
<p>Tokyo tower: ๐ผ</p>
<p>European castle: ๐ฐ</p>
<p>Japanese castle: ๐ฏ</p>
<p>Stadium: ๐๏ธ</p>
<p>Ferris wheel: ๐ก</p>
<p>Roller coaster: ๐ข</p>
<p>Carousel: ๐ </p>
<p>Parasol on ground: โฑ๏ธ</p>
<p>Umbrella on ground: โฑ๏ธ</p>
Activities and Sports Emojis
Emojis representing activities and sports are useful for expressing ideas about different physical activities and competitions. Here are some examples:
Sports
Here are some commonly used sports emojis:
<!-- Ball sports -->
<p>Basketball: ๐</p>
<p>Football: ๐</p>
<p>Baseball: โพ</p>
<p>Tennis: ๐พ</p>
<p>Volleyball: ๐</p>
<p>Rugby football: ๐</p>
<p>8-ball: ๐ฑ</p>
<p>Billiards: ๐ฑ</p>
<p>Ping pong: ๐</p>
<p>Badminton: ๐ธ</p>
<!-- Other sports -->
<p>Golf: โณ</p>
<p>Ice hockey: ๐</p>
<p>Field hockey: ๐</p>
<p>Cricket: ๐</p>
<p>Ski: ๐ฟ</p>
<p>Skier: โท๏ธ</p>
<p>Snowboarder: ๐</p>
<p>Person surfing: ๐</p>
<p>Person rowing boat: ๐ฃ</p>
<p>Person swimming: ๐</p>
<!-- Fitness -->
<p>Person lifting weights: ๐๏ธ</p>
<p>Person bouncing ball: โน๏ธ</p>
<p>Person in lotus position: ๐ง</p>
<p>Person doing cartwheel: ๐คธ</p>
<p>Person fencing: ๐คบ</p>
<p>People wrestling: ๐คผ</p>
<p>Person playing handball: ๐คพ</p>
<p>Person juggling: ๐คน</p>
<p>Person in steamy room: ๐ง</p>
<p>Person climbing: ๐ง</p>
Arts and Crafts
Here are some commonly used arts and crafts emojis:
<!-- Arts -->
<p>Artist palette: ๐จ</p>
<p>Crayon: ๐๏ธ</p>
<p>Notebook: ๐</p>
<p>Ledger: ๐</p>
<p>Closed book: ๐</p>
<p>Open book: ๐</p>
<p>Green book: ๐</p>
<p>Blue book: ๐</p>
<p>Orange book: ๐</p>
<p>Books: ๐</p>
<!-- Music -->
<p>Musical notes: ๐ต</p>
<p>Multiple musical notes: ๐ถ</p>
<p>Microphone: ๐ค</p>
<p>Headphone: ๐ง</p>
<p>Radio: ๐ป</p>
<p>Saxophone: ๐ท</p>
<p>Guitar: ๐ธ</p>
<p>Musical keyboard: ๐น</p>
<p>Trumpet: ๐บ</p>
<p>Violin: ๐ป</p>
Objects and Symbols Emojis
Emojis representing objects and symbols are useful for adding visual interest and conveying meaning in various contexts. Here are some examples:
Technology
Here are some commonly used technology emojis:
<!-- Devices -->
<p>Mobile phone: ๐ฑ</p>
<p>Mobile phone with arrow: ๐ฒ</p>
<p>Telephone: โ๏ธ</p>
<p>Telephone receiver: ๐</p>
<p>Pager: ๐</p>
<p>Fax machine: ๐ </p>
<p>Battery: ๐</p>
<p>Electric plug: ๐</p>
<p>Laptop computer: ๐ป</p>
<p>Desktop computer: ๐ฅ๏ธ</p>
<!-- Computer accessories -->
<p>Printer: ๐จ๏ธ</p>
<p>Computer mouse: ๐ฑ๏ธ</p>
<p>Trackball: ๐ฒ๏ธ</p>
<p>Joystick: ๐น๏ธ</p>
<p>Compact disc: ๐ฟ</p>
<p>Dvd: ๐</p>
<p>Videocassette: ๐ผ</p>
<p>Camera: ๐ท</p>
<p>Video camera: ๐น</p>
<!-- Movie camera: ๐ฅ</p>
Office and School
Here are some commonly used office and school emojis:
<!-- Office supplies -->
<p>Briefcase: ๐ผ</p>
<p>File folder: ๐</p>
<p>Open file folder: ๐</p>
<p>Card index dividers: ๐๏ธ</p>
<p>Calendar: ๐
</p>
<p>Tear-off calendar: ๐</p>
<p>Spiral notepad: ๐๏ธ</p>
<p>Spiral calendar: ๐๏ธ</p>
<p>Card index: ๐๏ธ</p>
<p>Chart increasing: ๐</p>
<!-- School supplies -->
<p>Graduation cap: ๐</p>
<p>Mortar board: ๐</p>
<p>School: ๐ซ</p>
<p>Pencil: โ๏ธ</p>
<p>Memo: ๐</p>
<p>Pushpin: ๐</p>
<p>Round pushpin: ๐</p>
<p>Paperclip: ๐</p>
<p>Straight ruler: ๐</p>
<p>Triangular ruler: ๐</p>
Practical Usage Examples
Here are some practical ways to use emojis in your HTML documents:
Social Media and Communication
Emojis can enhance social media posts and messages, making them more engaging and expressive.
<!-- Status updates -->
<div class="status">
<p>Just finished my project! ๐ So excited to share it with everyone! ๐</p>
<p>Coffee time! โ Ready to tackle the day! ๐ช</p>
<p>Weekend vibes: ๐๏ธโ๏ธ๐ Perfect beach day!</p>
<p>Movie night! ๐ฟ๐ฌ๐ฟ What should we watch? ๐ค</p>
</div>
<!-- Reviews and ratings -->
<div class="review">
<h4>Restaurant Review</h4>
<p>Food: โญโญโญโญโญ Amazing! ๐๐๐</p>
<p>Service: โญโญโญโญ Friendly staff! ๐</p>
<p>Atmosphere: โญโญโญโญ Great ambiance! ๐ต</p>
<p>Will definitely come back! ๐</p>
</div>
Navigation and UI Elements
Emojis can be used in navigation menus and user interface elements to make them more visually appealing and intuitive.
<!-- Navigation with emojis -->
<nav>
<ul>
<li><a href="#home">๐ Home</a></li>
<li><a href="#profile">๐ค Profile</a></li>
<li><a href="#messages">๐ฌ Messages</a></li>
<li><a href="#settings">โ๏ธ Settings</a></li>
<li><a href="#help">โ Help</a></li>
</ul>
</nav>
<!-- Status indicators -->
<div class="status-indicators">
<p>✓ Task completed successfully! ๐</p>
<p>✘ Upload failed. Please try again. ๐</p>
<p>☀ Weather: Sunny, 25ยฐC โ๏ธ</p>
<p>☁ Weather: Cloudy, 18ยฐC โ๏ธ</p>
<p>☕ Coffee break time! โ</p>
<p>a1; High priority task! โก</p>
</div>
<!-- Buttons with emojis -->
<div class="button-group">
<button>๐ Like</button>
<button>๐ฌ Comment</button>
<button>๐ Share</button>
<button>๐ง Email</button>
<button>๐ฑ Call</button>
<button>๐ Location</button>
</div>
Educational Content
Emojis can be used in educational content to make it more engaging and visually appealing for learners.
<!-- Learning content -->
<div class="lesson">
<h3>Today's Lesson: Animals ๐พ</h3>
<p>Let's learn about different animals! ๐ฆ๐ฏ๐ป๐จ๐ผ</p>
<h4>Mammals ๐ฆ</h4>
<ul>
<li>Lion ๐ฆ - King of the jungle</li>
<li>Tiger ๐ฏ - Striped big cat</li>
<li>Bear ๐ป - Loves honey ๐ฏ</li>
<li>Panda ๐ผ - Eats bamboo ๐</li>
</ul>
<h4>Birds ๐ฆ
</h4>
<ul>
<li>Eagle ๐ฆ
- Soars high in the sky โ๏ธ</li>
<li>Parrot ๐ฆ - Can talk! ๐ฃ๏ธ</li>
<li>Penguin ๐ง - Loves cold weather โ๏ธ</li>
<li>Owl ๐ฆ - Active at night ๐</li>
</ul>
<p>Great job learning today! ๐ Keep practicing! ๐ช</p>
</div>
Accessibility Considerations
When using emojis, it's important to consider accessibility to ensure all users can understand the content.
<!-- Accessible emoji usage -->
<!-- Use ARIA labels for emojis -->
<span aria-label="Completed" role="img">✓</span>
<!-- Provide text alternatives -->
<button>
<span aria-hidden="true">๐</span>
<span class="sr-only">Like this post</span>
</button>
<!-- Use semantic HTML when possible -->
<!-- Instead of: ✓ Completed -->
<div class="status success">Completed</div>
<!-- Use emojis with descriptive text -->
<p>☀ Weather: Sunny, 25ยฐC (Clear skies and sunshine)</p>
<p>☁ Weather: Cloudy, 18ยฐC (Overcast conditions)</p>
Browser Compatibility
While most modern browsers support emojis, some older browsers may not display them correctly. Here are some tips for ensuring better compatibility:
<!-- Test emoji compatibility -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Emojis Complete Reference</title>
<!-- CSS fallback for unsupported emojis -->
<style>
.emoji-fallback {
font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
}
.emoji-fallback::before {
content: attr(data-emoji);
}
/* Fallback for unsupported emojis */
@supports not (font-family: 'Apple Color Emoji') {
.emoji-fallback::before {
content: attr(data-fallback);
}
}
</style>
</head>
<body>
<!-- Modern emojis (may not work on older browsers) -->
<p>Modern emojis: ๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ</p>
<!-- Classic emojis (better compatibility) -->
<p>Classic emojis: ๐๐โค๏ธโญ๐</p>
<!-- Fallback options -->
<p>
<span class="emoji">๐</span>
<span class="fallback">(Rocket)</span>
</p>
</body>
</html>
| Emoji | Meaning | HTML Code | Category / Usage |
|---|---|---|---|
| ๐ | Celebration | 🎉 | Success / completion |
| ๐ | Rocket / progress | 🚀 | Achievement / launch |
| ๐ช | Strong / motivated | 💪 | Energy / productivity |
| ๐ | Happy smile | 😊 | Positive emotion |
| ๐ค | Thinking | 🤔 | Confusion / decision |
| โ๏ธ | Sun | ☀ | Sunny weather |
| ๐ | Ocean waves | 🌊 | Beach / travel mood |
| ๐๏ธ | Beach | 🏖 | Vacation / weekend |
| ๐ | Pizza | 🍕 | Food / restaurant |
| ๐ | Burger | 🍔 | Fast food |
| ๐ | Fries | 🍟 | Snacks / food review |
| ๐ฟ | Popcorn | 🍿 | Movie night |
| ๐ฉ | Doughnut | 🍩 | Dessert / sweets |
| โ | Coffee | ☕ | Break / energy |
| ๐ฌ | Movie | 🎬 | Entertainment |
| ๐ต | Music | 🎵 | Audio / mood |
| ๐ฎ | Gaming | 🎮 | Games / fun |
| ๐จ | Art palette | 🎨 | Design / creativity |
| ๐ท | Camera | 📷 | Photography |
| ๐ | Like | 👍 | Approval |
| ๐ | Dislike | 👎 | Disapproval |
| โค๏ธ | Love | ❤ | Support / love |
| โญ | Star rating | ⭐ | Reviews / rating |
Complete Emoji Reference Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Emojis Complete Reference</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 20px;
background-color: #f4f4f4;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
background-color: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
color: #2c3e50;
text-align: center;
margin-bottom: 30px;
}
.emoji-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin: 30px 0;
}
.emoji-card {
background-color: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
padding: 20px;
text-align: center;
transition: transform 0.3s ease;
}
.emoji-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.emoji-display {
font-size: 3em;
margin-bottom: 10px;
line-height: 1;
}
.emoji-name {
font-weight: bold;
color: #495057;
margin-bottom: 5px;
}
.emoji-code {
font-family: 'Courier New', monospace;
background-color: #e9ecef;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.9em;
color: #6c757d;
}
.category {
margin: 40px 0;
padding: 20px;
background-color: #f8f9fa;
border-radius: 8px;
border-left: 4px solid #007bff;
}
.category h2 {
color: #007bff;
margin-top: 0;
}
.interactive-demo {
background-color: #e3f2fd;
border-left: 4px solid #2196f3;
padding: 20px;
margin: 30px 0;
border-radius: 4px;
}
.button-group {
display: flex;
gap: 10px;
margin: 15px 0;
flex-wrap: wrap;
}
.btn {
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: all 0.3s ease;
}
.btn-primary {
background-color: #3498db;
color: white;
}
.btn-primary:hover {
background-color: #2980b9;
transform: translateY(-2px);
}
#emojiOutput {
background-color: #2d3748;
color: #e2e8f0;
padding: 15px;
border-radius: 4px;
font-family: 'Courier New', monospace;
margin: 15px 0;
min-height: 100px;
white-space: pre-wrap;
font-size: 14px;
}
.example-section {
background-color: #fff3cd;
border-left: 4px solid #ffc107;
padding: 20px;
margin: 20px 0;
border-radius: 4px;
}
.example-section h3 {
color: #856404;
margin-top: 0;
}
.emoji-text {
font-size: 1.2em;
margin: 10px 0;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}
</style>
</head>
<body>
<div class="container">
<h1>HTML Emojis Complete Reference</h1>
<div class="category">
<h2>Smiling Faces & Emotions</h2>
<div class="emoji-grid">
<div class="emoji-card">
<div class="emoji-display">๐</div>
<div class="emoji-name">Grinning Face</div>
<div class="emoji-code">😀</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐</div>
<div class="emoji-name">Smiling Face</div>
<div class="emoji-code">😊</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐</div>
<div class="emoji-name">Face with Tears</div>
<div class="emoji-code">😂</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐ฅฐ</div>
<div class="emoji-name">Smiling Face with Hearts</div>
<div class="emoji-code">🥰</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐คฃ</div>
<div class="emoji-name">Rolling on Floor</div>
<div class="emoji-code">🤣</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐</div>
<div class="emoji-name">Heart Eyes</div>
<div class="emoji-code">😍</div>
</div>
</div>
</div>
<div class="category">
<h2>Animals & Nature</h2>
<div class="emoji-grid">
<div class="emoji-card">
<div class="emoji-display">๐ถ</div>
<div class="emoji-name">Dog</div>
<div class="emoji-code">🐶</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐ฑ</div>
<div class="emoji-name">Cat</div>
<div class="emoji-code">🐸</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐ผ</div>
<div class="emoji-name">Panda</div>
<div class="emoji-code">🐨</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐ฆ</div>
<div class="emoji-name">Lion</div>
<div class="emoji-code">🦁</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐ฆ</div>
<div class="emoji-name">Fox</div>
<div class="emoji-code">🦊</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐ฆ</div>
<div class="emoji-name">Butterfly</div>
<div class="emoji-code">🦋</div>
</div>
</div>
</div>
<div class="category">
<h2>Food & Drink</h2>
<div class="emoji-grid">
<div class="emoji-card">
<div class="emoji-display">๐</div>
<div class="emoji-name">Pizza</div>
<div class="emoji-code">🍕</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐</div>
<div class="emoji-name">Hamburger</div>
<div class="emoji-code">🍔</div>
</div>
<div class="emoji-card">
<div class="emoji-display">โ</div>
<div class="emoji-name">Coffee</div>
<div class="emoji-code">☕</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐</div>
<div class="emoji-name">Apple</div>
<div class="emoji-code">🍎</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐</div>
<div class="emoji-name">Strawberry</div>
<div class="emoji-code">🍓</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐ฉ</div>
<div class="emoji-name">Doughnut</div>
<div class="emoji-code">🍛</div>
</div>
</div>
</div>
<div class="category">
<h2>Activities & Sports</h2>
<div class="emoji-grid">
<div class="emoji-card">
<div class="emoji-display">โฝ</div>
<div class="emoji-name">Soccer Ball</div>
<div class="emoji-code">⚽</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐</div>
<div class="emoji-name">Basketball</div>
<div class="emoji-code">🏀</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐ฎ</div>
<div class="emoji-name">Video Game</div>
<div class="emoji-code">🎮</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐ต</div>
<div class="emoji-name">Musical Note</div>
<div class="emoji-code">🎵</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐จ</div>
<div class="emoji-name">Artist Palette</div>
<div class="emoji-code">🎨</div>
</div>
<div class="emoji-card">
<div class="emoji-display">๐ท</div>
<div class="emoji-name">Camera</div>
<div class="emoji-code">📷</div>
</div>
</div>
</div>
<div class="interactive-demo">
<h3>Interactive Emoji Generator</h3>
<p>Click the buttons below to see different emoji categories and their HTML entities:</p>
<div class="button-group">
<button class="btn btn-primary" onclick="showFaces()">Faces</button>
<button class="btn btn-primary" onclick="showAnimals()">Animals</button>
<button class="btn btn-primary" onclick="showFood()">Food</button>
<button class="btn btn-primary" onclick="showTravel()">Travel</button>
<button class="btn btn-primary" onclick="showActivities()">Activities</button>
<button class="btn btn-primary" onclick="showObjects()">Objects</button>
</div>
<div id="emojiOutput">Click a button to see emoji examples...</div>
</div>
<div class="example-section">
<h3>Practical Usage Examples</h3>
<h4>Social Media Post</h4>
<div class="emoji-text">
Just finished my workout! ๐ช Feeling great! ๐ Now time for some healthy food ๐ฅ and coffee โ
</div>
<h4>Navigation Menu</h4>
<div class="emoji-text">
๐ Home | ๐ค Profile | ๐ฌ Messages | โ๏ธ Settings | โ Help
</div>
<h4>Status Indicators</h4>
<div class="emoji-text">
โ
Task completed | โ Upload failed | โ๏ธ Weather: Sunny | โ Coffee break time!
</div>
<h4>Educational Content</h4>
<div class="emoji-text">
Today we're learning about animals! ๐ฆ๐ฏ๐ป๐ผ๐จ
Lions ๐ฆ are the kings of the jungle! ๐ฟ
Pandas ๐ผ love bamboo! ๐
Butterflies ๐ฆ are beautiful insects! ๐ธ
</div>
</div>
<div class="example-section">
<h3>Accessibility Examples</h3>
<h4>Accessible Button</h4>
<button>
<span aria-hidden="true">๐</span>
<span class="sr-only">Like this post</span>
</button>
<h4>Accessible Status</h4>
<p>
<span aria-label="Completed" role="img">โ
</span>
Task completed successfully!
</p>
<h4>Accessible Weather</h4>
<p>
<span aria-label="Sunny weather" role="img">โ๏ธ</span>
Weather: Sunny, 25ยฐC
</p>
</div>
</div>
<script>
function showFaces() {
const output = document.getElementById('emojiOutput');
output.innerHTML = `Smiling Faces & Emotions:
๐ Grinning Face: 😀
๐ Smiling Face: 😊
๐ Face with Tears: 😂
๐คฃ Rolling on Floor: 🤣
๐ Heart Eyes: 😍
๐ฅฐ Smiling with Hearts: 🥰
๐ Face Blowing a Kiss: 😘
๐ Kissing Face: 😗
๐ Kissing Face with Closed Eyes: 😖`;
}
function showAnimals() {
const output = document.getElementById('emojiOutput');
output.innerHTML = `Animals & Nature:
๐ถ Dog: 🐶
๐ฑ Cat: 🐸
๐ผ Panda: 🐨
๐ฆ Lion: 🦁
๐ฆ Fox: 🦊
๐ป Bear: 🐻
๐จ Koala: 🐫
๐ฏ Tiger: 🐺
๐ฆ Butterfly: 🦋
๐ Honeybee: 🐞`;
}
function showFood() {
const output = document.getElementById('emojiOutput');
output.innerHTML = `Food & Drink:
๐ Pizza: 🍕
๐ Hamburger: 🍔
๐ Fries: 🍟
๐ฎ Taco: 🌮
๐ช Cookie: 🍪
โ Coffee: ☕
๐ Apple: 🍎
๐ Banana: 🍌
๐ Strawberry: 🍓
๐ฉ Doughnut: 🍛`;
}
function showTravel() {
const output = document.getElementById('emojiOutput');
output.innerHTML = `Travel & Places:
๐ Automobile: 🚗
โ๏ธ Airplane: ✈
๐จ Hotel: 🏦
๐๏ธ Beach: 🏖
๐ Mountain: 🏞
๐ Ferris Wheel: 🎠
๐ข Roller Coaster: 🎞
๐๏ธ Classical Building: 🏫
๐ฝ Statue of Liberty: 😆`;
}
function showActivities() {
const output = document.getElementById('emojiOutput');
output.innerHTML = `Activities & Sports:
โฝ Soccer Ball: ⚽
๐ Basketball: 🏀
๐ฎ Video Game: 🎮
๐ต Musical Note: 🎵
๐จ Artist Palette: 🎨
๐ท Camera: 📷
๐ฌ Movie Camera: 🎞
๐ค Microphone: 🎣`;
}
function showObjects() {
const output = document.getElementById('emojiOutput');
output.innerHTML = `Objects & Symbols:
๐ป Laptop: 💻
๐ฑ Mobile Phone: 📱
โ Clock: 🕐
๐ก Light Bulb: 💡
๐ Key: 🔑
๐ Locked: 🔒
๐ Books: 📖`;
}
</script>
</body>
</html>