curriculum/challenges/english/blocks/lecture-understanding-the-html-boilerplate/670839051794aa19fcef6dc8.md
UTF-8, or UCS Transformation Format 8, is a standardized character encoding widely used on the web. Character encoding is the method computers use to store characters as data. Essentially, all text on a web page is a sequence of characters stored as one or more bytes. In computing, a byte is a unit of data consisting of 8 bits, or binary digits. UTF-8 supports every character in the Unicode character set - and this includes characters and symbols from all writing systems, languages, and technical symbols. Here is an example of using the meta element with the charset attribute to set the character encoding to UTF-8:
<meta charset="UTF-8" />
By setting the character encoding to UTF-8, it will ensure that the accented "e" character (é) is displayed correctly on the page. Here is an extended code example of using the UTF-8 character encoding:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Examples of the UTF-8 encoding</title>
</head>
<body>
<p>Café</p>
</body>
</html>
For each new project you create, you should include this meta element with the charset attribute set to UTF-8.
Which attribute is used to set the UTF-8 character encoding for HTML documents?
pattern
Refer back to the examples showing which attribute to use.
content
Refer back to the examples showing which attribute to use.
charset
lang
Refer back to the examples showing which attribute to use.
3
What is character encoding?
A method computers use to store characters as data.
A way to compress text files.
Think about what computers do with characters.
It determines the font used to display text on a screen.
Think about what computers do with characters.
It refers to the process of converting spoken language into written text.
Think about what computers do with characters.
1
How many bits are inside of a byte?
1
Refer back to the information about bytes and bits.
33
Refer back to the information about bytes and bits.
7
Refer back to the information about bytes and bits.
8
4