HTML Emojis
Emojis are characters from the UTF-8 character set. Emojis look like images, or icons, but they are not.
Using Emojis in HTML
Since emojis are characters, they can be copied, displayed, and sized just like any other character in HTML. To correctly display emojis, your HTML page must specify the UTF-8 character set:
html
<meta charset="UTF-8">Example: Displaying Emojis
You can use the emoji character directly or its character entity number.
😀 😄 😍
html
<p>😀 😄 😍</p>Test Yourself with an Exercise
To display an emoji, what character set should your page use?