Emojis in HTML

Emojis are made up of the following UTF-8 characters:🇯🇵 🇰🇷 🇩🇪 🇨🇳 🇺🇸 🇫🇷 🇪🇸 🇮🇹 🇷🇺 🇬🇧

What do Emojis mean?

Emojis look like pictures or icons, but they are not.

They are letters from the Unicode (UTF-8) character set.

Almost all of the characters and symbols in the world can be used with UTF-8.

The HTML charset Attribute

The HTML charset attribute tells the computer what kind of characters to use.

A web browser needs to know the character set used on an HTML page in order to show it correctly.

This is what the <meta> tag says:

<meta charset=\”UTF-8\”>

If you don\’t tell HTML otherwise, UTF-8 will be used.

Characters in UTF-8

Many UTF-8 characters can\’t be typed on a keyboard, but they can always be shown using numbers (called entity numbers):

X is 88, Y is 89 and Z is 90

Example

<!DOCTYPE html>
<html>
<head>
<meta charset=\”UTF-8\”>
</head>
<body>

<p>I will display X Y Z</p>
<p>I will display &#88; &#89; &#90;</p>

</body>
</html>

Some Emoji Symbols in UTF-8

EmojiValue
🗻&#128507;
🗼&#128508;
🗽&#128509;
🗾&#128510;
🗿&#128511;
😀&#128512;
😁&#128513;
😂&#128514;
😃&#128515;
😄&#128516;
😅&#128517;