Horje
How to create HTML Emoji Characters

Emojis are also characters from the UTF-8 alphabet:


Example of HTML Emoji Characters

index.html
Example: HTML
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<body>

<h1>My First Emoji</h1>

<p>&#128512;</p>

</body>
</html>

Output should be:

Example of HTML Emoji Characters

Another Example of HTML Emoji Characters

Since Emojis are characters, they can be copied, displayed, and sized just like any other character in HTML.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<body>

<h1>Sized Emojis</h1>

<p style="font-size:48px">
&#128512; &#128516; &#128525; &#128151;
</p>

</body>
</html>

Output should be:

Another Example of HTML Emoji Characters





Related Articles
What is Emojis in HTML HTML Emojis
What is The HTML charset Attribute HTML Emojis
How to set UTF-8 Characters HTML Emojis
How to create HTML Emoji Characters HTML Emojis

Single Articles
Example of HTML Emoji CharactersHTML Emojis
Another Example of HTML Emoji CharactersHTML Emojis

Read Full:
HTML Emojis
Category:
Web Tutorial
Sub Category:
HTML Emojis
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
60


Reffered: https://www.w3schools.com/html/html_emojis.asp

Share on: