0% found this document useful (0 votes)
1 views

HTML Emojis

The document provides an overview of using emojis in HTML, explaining that emojis are characters from the UTF-8 character set. It includes examples of how to display emojis using their entity numbers and emphasizes the importance of specifying the character set in HTML using the <meta> tag. Additionally, it illustrates how emojis can be sized and styled like regular text in HTML.

Uploaded by

Asif Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

HTML Emojis

The document provides an overview of using emojis in HTML, explaining that emojis are characters from the UTF-8 character set. It includes examples of how to display emojis using their entity numbers and emphasizes the importance of specifying the character set in HTML using the <meta> tag. Additionally, it illustrates how emojis can be sized and styled like regular text in HTML.

Uploaded by

Asif Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

 Tutorials  Exercises  Services   Sign Up Log in

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++

Using Emojis in HTML


❮ Previous Next ❯

Emojis are characters from the UTF-8 character set: 😄😍💗

Emoji Value

🗻 &#128507; Try it »

🗼 &#128508; Try it »

🗽 &#128509; Try it »

🗾 &#128510; Try it »

🗿 &#128511; Try it »

😀 &#128512; Try it »

😁 &#128513; Try it »

😂 &#128514; Try it »

😃 &#128515; Try it »

😄 &#128516; Try it »

😅 &#128517; Try it »

Full HTML Emoji Reference


HTML
 Emojis
Tutorials  Examples
Exercises  Services   Sign Up Log in

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++

🚀🚁🚂🚃🚄
HTML Emoji Transport Symbols

💺💻💼💽💾
HTML Emoji Office Symbols

👮👯👰👱👲
HTML Emoji People Symbols

🐂🐃🐄🐅🐆
HTML Emoji Animals Symbols

What are Emojis?


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

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

UTF-8 covers almost all of the characters and symbols in the world.
 Tutorials  Exercises  Services   Sign Up Log in
The HTML charset Attribute
HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++
To display an HTML page correctly, a web browser must know the character set used in the
page.

This is specified in the <meta> tag:

<meta charset="UTF-8">

If not specified, UTF-8 is the default character set in HTML.

UTF-8 Characters
Many UTF-8 characters cannot be typed on a keyboard, but they can always be displayed using
numbers (called entity numbers):

A is 65
B is 66
C is 67

Example
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<body>

<p>I will display A B C</p>


<p>I will display &#65; &#66; &#67;</p>

</body>
</html>

Try it Yourself »
Example
 Explained
Tutorials  Exercises  Services   Sign Up Log in

The <meta
HTML CSS charset="UTF-8">
JAVASCRIPT element
SQL defines the
PYTHON character
JAVA PHPset. HOW TO W3.CSS C C++

The characters A, B, and C, are displayed by the numbers 65, 66, and 67.

To let the browser understand that you are displaying a character, you must start the entity
number with &# and end it with ; (semicolon).

Emoji Characters
Emojis are also characters from the UTF-8 alphabet:

😄 is 128516
😍 is 128525
💗 is 128151

Example
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<body>

<h1>My First Emoji</h1>

<p>&#128512;</p>

</body>
</html>

Try it Yourself »

Since Emojis are characters, they can be copied, displayed, and sized just like any other
character in HTML.

Example
<!DOCTYPE
<html>
html>
Tutorials  Exercises  Services   Sign Up Log in

<meta charset="UTF-8">
HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++
<body>

<h1>Sized Emojis</h1>

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

</body>
</html>

Try it Yourself »

❮ Previous Next ❯

Track your progress - it's free! Sign Up Log in


COLOR PICKER
 Tutorials  Exercises  Services   Sign Up Log in

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++



 PLUS SPACES

GET CERTIFIED FOR TEACHERS

FOR BUSINESS CONTACT US

Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
W3.CSS Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial

Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
W3.CSS Reference
Bootstrap Reference
PHP Reference
HTML Colors
Java Reference
Angular Reference

 Tutorials  jQuery Reference


Exercises 
Top Examples
Services  
Get Certified
Sign Up Log in

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++
HTML Examples HTML Certificate
CSS Examples CSS Certificate
JavaScript Examples JavaScript Certificate
How To Examples Front End Certificate
SQL Examples SQL Certificate
Python Examples Python Certificate
W3.CSS Examples PHP Certificate
Bootstrap Examples jQuery Certificate
PHP Examples Java Certificate
Java Examples C++ Certificate
XML Examples C# Certificate
jQuery Examples XML Certificate

    

FORUM ABOUT ACADEMY


W3Schools is optimized for learning and training. Examples might be simplified to improve reading and
learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full
correctness
of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie
and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.

You might also like