HTML · Document structure

meta charset

Declares the character encoding. UTF-8 covers every language and emoji; it should appear in the first 1024 bytes of the document.

Syntax
<meta charset="utf-8">

Example

Try it

More in this group

<!doctype html> base body head html link meta description meta robots

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course