Labs ICT

HTML Emojis

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: &#128512;</p>        <!-- ๐Ÿ˜Š -->
<p>Thumbs up: &#128077;</p>           <!-- ๐Ÿ‘ -->
<p>Heart: &#10084;</p>                 <!-- โค๏ธ -->
<p>Star: &#11088;</p>                 <!-- โญ -->
<p>Fire: &#128293;</p>                 <!-- ๐Ÿ”ฅ -->

Hexadecimal Entities

Alternatively, you can use hexadecimal entities to represent emojis:

<!-- Using hexadecimal entities -->
<p>Smiley face: &#x1F60A;</p>        <!-- ๐Ÿ˜Š -->
<p>Thumbs up: &#x1F44D;</p>           <!-- ๐Ÿ‘ -->
<p>Heart: &#x2764;</p>                 <!-- โค๏ธ -->
<p>Star: &#x2B50;</p>                 <!-- โญ -->
<p>Fire: &#x1F525;</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>&#10003; Task completed successfully! ๐ŸŽ‰</p>
  <p>&#10008; Upload failed. Please try again. ๐Ÿ˜ž</p>
  <p>&#9728; Weather: Sunny, 25ยฐC โ˜€๏ธ</p>
  <p>&#9729; Weather: Cloudy, 18ยฐC โ˜๏ธ</p>
  <p>&#9749; Coffee break time! โ˜•</p>
  <p>&#26a1; 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">&#10003;</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: &#10003; Completed -->
<div class="status success">Completed</div>

<!-- Use emojis with descriptive text -->
<p>&#9728; Weather: Sunny, 25ยฐC (Clear skies and sunshine)</p>
<p>&#9729; 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 &#127881; Success / completion
๐Ÿš€ Rocket / progress &#128640; Achievement / launch
๐Ÿ’ช Strong / motivated &#128170; Energy / productivity
๐Ÿ˜Š Happy smile &#128522; Positive emotion
๐Ÿค” Thinking &#129300; Confusion / decision
โ˜€๏ธ Sun &#9728; Sunny weather
๐ŸŒŠ Ocean waves &#127754; Beach / travel mood
๐Ÿ–๏ธ Beach &#127958; Vacation / weekend
๐Ÿ• Pizza &#127829; Food / restaurant
๐Ÿ” Burger &#127828; Fast food
๐ŸŸ Fries &#127839; Snacks / food review
๐Ÿฟ Popcorn &#127871; Movie night
๐Ÿฉ Doughnut &#127849; Dessert / sweets
โ˜• Coffee &#9749; Break / energy
๐ŸŽฌ Movie &#127916; Entertainment
๐ŸŽต Music &#127925; Audio / mood
๐ŸŽฎ Gaming &#127918; Games / fun
๐ŸŽจ Art palette &#127912; Design / creativity
๐Ÿ“ท Camera &#128247; Photography
๐Ÿ‘ Like &#128077; Approval
๐Ÿ‘Ž Dislike &#128078; Disapproval
โค๏ธ Love &#10084; Support / love
โญ Star rating &#11088; 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">&#128512;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿ˜Š</div>
          <div class="emoji-name">Smiling Face</div>
          <div class="emoji-code">&#128522;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿ˜‚</div>
          <div class="emoji-name">Face with Tears</div>
          <div class="emoji-code">&#128514;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿฅฐ</div>
          <div class="emoji-name">Smiling Face with Hearts</div>
          <div class="emoji-code">&#129392;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿคฃ</div>
          <div class="emoji-name">Rolling on Floor</div>
          <div class="emoji-code">&#129315;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿ˜</div>
          <div class="emoji-name">Heart Eyes</div>
          <div class="emoji-code">&#128525;</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">&#128054;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿฑ</div>
          <div class="emoji-name">Cat</div>
          <div class="emoji-code">&#128056;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿผ</div>
          <div class="emoji-name">Panda</div>
          <div class="emoji-code">&#128040;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿฆ</div>
          <div class="emoji-name">Lion</div>
          <div class="emoji-code">&#129409;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐ŸฆŠ</div>
          <div class="emoji-name">Fox</div>
          <div class="emoji-code">&#129418;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿฆ‹</div>
          <div class="emoji-name">Butterfly</div>
          <div class="emoji-code">&#129419;</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">&#127829;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿ”</div>
          <div class="emoji-name">Hamburger</div>
          <div class="emoji-code">&#127828;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">โ˜•</div>
          <div class="emoji-name">Coffee</div>
          <div class="emoji-code">&#9749;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐ŸŽ</div>
          <div class="emoji-name">Apple</div>
          <div class="emoji-code">&#127822;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿ“</div>
          <div class="emoji-name">Strawberry</div>
          <div class="emoji-code">&#127827;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿฉ</div>
          <div class="emoji-name">Doughnut</div>
          <div class="emoji-code">&#127835;</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">&#9917;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿ€</div>
          <div class="emoji-name">Basketball</div>
          <div class="emoji-code">&#127936;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐ŸŽฎ</div>
          <div class="emoji-name">Video Game</div>
          <div class="emoji-code">&#127918;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐ŸŽต</div>
          <div class="emoji-name">Musical Note</div>
          <div class="emoji-code">&#127925;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐ŸŽจ</div>
          <div class="emoji-name">Artist Palette</div>
          <div class="emoji-code">&#127912;</div>
        </div>
        <div class="emoji-card">
          <div class="emoji-display">๐Ÿ“ท</div>
          <div class="emoji-name">Camera</div>
          <div class="emoji-code">&#128247;</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: &#128512;
๐Ÿ˜Š Smiling Face: &#128522;
๐Ÿ˜‚ Face with Tears: &#128514;
๐Ÿคฃ Rolling on Floor: &#129315;
๐Ÿ˜ Heart Eyes: &#128525;
๐Ÿฅฐ Smiling with Hearts: &#129392;
๐Ÿ˜˜ Face Blowing a Kiss: &#128536;
๐Ÿ˜— Kissing Face: &#128535;
๐Ÿ˜š Kissing Face with Closed Eyes: &#128534`;
    }
    
    function showAnimals() {
      const output = document.getElementById('emojiOutput');
      output.innerHTML = `Animals & Nature:
๐Ÿถ Dog: &#128054;
๐Ÿฑ Cat: &#128056;
๐Ÿผ Panda: &#128040;
๐Ÿฆ Lion: &#129409;
๐ŸฆŠ Fox: &#129418;
๐Ÿป Bear: &#128059;
๐Ÿจ Koala: &#128043;
๐Ÿฏ Tiger: &#128058;
๐Ÿฆ‹ Butterfly: &#129419;
๐Ÿ Honeybee: &#128030`;
    }
    
    function showFood() {
      const output = document.getElementById('emojiOutput');
      output.innerHTML = `Food & Drink:
๐Ÿ• Pizza: &#127829;
๐Ÿ” Hamburger: &#127828;
๐ŸŸ Fries: &#127839;
๐ŸŒฎ Taco: &#127790;
๐Ÿช Cookie: &#127850;
โ˜• Coffee: &#9749;
๐ŸŽ Apple: &#127822;
๐ŸŒ Banana: &#127820;
๐Ÿ“ Strawberry: &#127827;
๐Ÿฉ Doughnut: &#127835`;
    }
    
    function showTravel() {
      const output = document.getElementById('emojiOutput');
      output.innerHTML = `Travel & Places:
๐Ÿš— Automobile: &#128663;
โœˆ๏ธ Airplane: &#9992;
๐Ÿจ Hotel: &#127974;
๐Ÿ–๏ธ Beach: &#127958;
๐Ÿ” Mountain: &#127966;
๐ŸŒ‰ Ferris Wheel: &#127904;
๐ŸŽข Roller Coaster: &#127902;
๐Ÿ›๏ธ Classical Building: &#127979;
๐Ÿ—ฝ Statue of Liberty: &#128518`;
    }
    
    function showActivities() {
      const output = document.getElementById('emojiOutput');
      output.innerHTML = `Activities & Sports:
โšฝ Soccer Ball: &#9917;
๐Ÿ€ Basketball: &#127936;
๐ŸŽฎ Video Game: &#127918;
๐ŸŽต Musical Note: &#127925;
๐ŸŽจ Artist Palette: &#127912;
๐Ÿ“ท Camera: &#128247;
๐ŸŽฌ Movie Camera: &#127902;
๐ŸŽค Microphone: &#127907`;
    }
    
    function showObjects() {
      const output = document.getElementById('emojiOutput');
      output.innerHTML = `Objects & Symbols:
๐Ÿ’ป Laptop: &#128187;
๐Ÿ“ฑ Mobile Phone: &#128241;
โŒš Clock: &#128336;
๐Ÿ’ก Light Bulb: &#128161;
๐Ÿ”‘ Key: &#128273;
๐Ÿ” Locked: &#128274;
๐Ÿ“š Books: &#128214`;
    }
  </script>

</body>
</html>

๐Ÿงช Quick Quiz

How can you add emojis in HTML?