</> Code Corner

HTML · HTML Tutorial · Lesson 37

HTML Charsets

Character encoding and UTF-8.

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:

Example

<meta charset="UTF-8">

History

Charset Description
ASCII The first character set — 128 characters (English letters, digits, symbols)
ANSI (Windows-1252) 256 characters, the original Windows set
ISO-8859-1 256 characters, default in HTML 4
UTF-8 Covers almost all characters and symbols in the world; default in HTML5

Keep reading “HTML Charsets”

Sign up to read the full lesson (1 more parts), try every example in the live editor, and take the 5-question quiz.

Chat with us 👋