Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Elements

0/1

HTML Attributes

0/1

HTML Headings

0/1

HTML Paragraphs

0/1

HTML Styles

0/1

HTML Formatting

0/1

HTML Quotation

0/1

HTML Comments

0/1

HTML Colors

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Block and Inline

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML - The Head Element

0/1

HTML Style Guide

0/1

HTML Entities

0/1

HTML Symbols

0/1
Text lesson

Using Emojis in HTML

Emojis are characters within the UTF-8 character set.😄 😍 💗

Emoji

Value

🗻

🗻

🗼

🗼

🗽

🗽

🗾

🗾

🗿

🗿

😀

😀

😁

😁

😂

😂

😃

😃

😄

😄

😅

😅

HTML Emojis Examples

🚀🚁🚂🚃🚄

HTML Emoji Transport Symbols:

💺💻💼💽💾

HTML Emoji Office Symbols:

👮👯👰👱👲

HTML Emoji People Symbols:

🐂🐃🐄🐅🐆

What are Emojis?

Emojis may resemble images or icons, but they’re actually characters derived from the UTF-8 (Unicode) character set.

UTF-8 encompasses a vast majority of characters and symbols found worldwide.

The HTML charset Attribute

For proper display of an HTML page, a web browser needs to be aware of the character set employed in the page, a detail typically indicated within the <meta> tag.

<meta charset=”UTF-8″>

If not explicitly stated, UTF-8 serves as the default character set in HTML.

UTF-8 Characters

Numerous UTF-8 characters aren’t readily typed via keyboards, yet they can consistently be displayed using numerical representations known as entity numbers:

  • A corresponds to 65,
  • B corresponds to 66,
  • C corresponds to 67

Example

<!DOCTYPE html>
<html>
<meta charset=”UTF-8″>
<body>

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

</body>
</html>

Example Explained

The <meta charset=”UTF-8″> tag specifies the character encoding.

The characters A, B, and C correspond to the numbers 65, 66, and 67.

To indicate to the browser that you’re representing a character, you begin the entity number with &# and conclude it with a semicolon (;).

Emoji Characters

Emojis are also characters within the UTF-8 character set.

  • 😄 is 128516
  • 😍 is 128525
  • 💗 is 128151

Example

<!DOCTYPE html>
<html>
<meta charset=”UTF-8″>
<body>

<h1>My First Emoji</h1>

<p>😀</p>

</body>
</html>

Given that emojis are characters, they can be copied, displayed, and formatted just like any other character in HTML.

 

Example

<!DOCTYPE html>
<html>
<meta charset=”UTF-8″>
<body>

<h1>Sized Emojis</h1>

<p style=”font-size:48px”>
😀 😄 😍 💗
</p>

</body>
</html>