iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

HTML Emojis

Emojis are Unicode characters. With a UTF-8 page, you can paste them directly into HTML or use the numeric code.

Embedding emojis

MethodExampleRenders
Paste directly<p>Hello 🌍</p>Hello 🌍
Decimal entity&#128512;😀
Hex entity&#x1F4A1;💡

Popular emoji codes

Code pointEmojiName
&#128512;😀Grinning face
&#128525;😍Smiling face with heart-eyes
&#10084;&#65039;❤️Red heart
&#127881;🎉Party popper
&#128640;🚀Rocket
&#128187;💻Laptop
&#9989;Check mark
Note: Emojis are required to be UTF-8 to display. Set <meta charset="UTF-8"> at the top of <head>, and save the file as UTF-8.

Example

Example
<!DOCTYPE html>
<html>
<head>
    <title>HTML Emojis</title>
</head>
<body>

<h1>HTML Emojis</h1>
<p>This is a demo page for the "HTML Emojis" lesson.</p>

</body>
</html>
Try it Yourself »

Exercise

Add the meta charset so emojis render correctly.

<meta charset=" ">

Test yourself

Q1. Emoji in HTML need…
Q2. Recommended charset is…
Q3. Emoji as accessible text should pair with…

Discussion

Loading…