Horje
How to set 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 of UTF-8 Characters

index.html
Example: HTML
<!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>

Output should be:

Example of UTF-8 Characters

Example Explained

The <meta charset="UTF-8"> element defines the character set.

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).






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 UTF-8 CharactersHTML Emojis
Example ExplainedHTML Emojis

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


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

Share on: