HTML Emojis
HTML
HTML emojis (like 😍, 🌼, 🌈) are characters but look like small image or icon.
To add emojis to HTML, you can use Unicode character codes or copy and paste the emoji directly into your file.
For either method to work correctly, you need to specify UTF-8 character encoding in the <head> section of the document.
Entity character for emojis
➔ Emojis are characters from UTF-8 character set.
<meta charset="UTF-8">
➔ Emojis characters can displayed by entity character numbers (Hexadecimal or Decimal).
➔ Emojis character number is preceded by an ampersand (&) and succeeded by a semicolon (;) ie: 😍 is for emoji 😍, 🌼 is for emoji 🌼, 🌈 is for emoji 🌈
Learning with HTML Editor "Try it Now"
You can edit the HTML code and view the result using online editor.
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML Emoji Characters</title>
<meta charset="utf-8"/>
</head>
<body>
<p>Example: HTML Entity Symbol</p>
<h1>😍 is the character number for 😍 emoji.</h1>
<h1>🌼 is the character number for 🌼 emoji.</h1>
</body>
</html>
Click on the "Try it Now" button to see how it works.
HTML UTF-8 Emojis
UTF-8 Smileys
| Char | Dec | Hex | Name |
|---|---|---|---|
| 😀 | 128512 | 1F600 | GRINNING FACE |
| 😁 | 128513 | 1F601 | GRINNING FACE WITH SMILING EYES |
| 😂 | 128514 | 1F602 | FACE WITH TEARS OF JOY |
| 😃 | 128515 | 1F603 | SMILING FACE WITH OPEN MOUTH |
| 😄 | 128516 | 1F604 | SMILING FACE WITH OPEN MOUTH AND SMILING EYES |
| 😅 | 128517 | 1F605 | SMILING FACE WITH OPEN MOUTH AND COLD SWEAT |
| 😆 | 128518 | 1F606 | SMILING FACE WITH OPEN MOUTH AND TIGHTLY-CLOSED EYES |
| 😇 | 128519 | 1F607 | SMILING FACE WITH HALO |
| 😈 | 128520 | 1F608 | SMILING FACE WITH HORNS |
| 😉 | 128521 | 1F609 | WINKING FACE |