Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website HTML First Use HTML Elements

Scott Anderson
Scott Anderson
241 Points

What does "Set the character set for page" mean? Help? Thanks.

I am on Challenge Task 4 of 6

index.html
<!DOCTYPE html>
<html>
  <head>
  </head>
  <body></body>
</html>

To set the character set for a page is to tell the browser which character encoding it should use.

include this into you <head> tag:

<meta charset="utf-8">

This lets the browser know that the page is using the UTF-8 character set.

UTF-8 supports more characters than ASCII, allowing international languages to be represented.

2 Answers

Hi Scott!

The code that you will need is as follows.

<meta charset="utf-8">

This is not actually content on the page but rather some code which is more to do with which characters can be displayed on the screen. Can you figure out where this code would go?

Hi Caleb,

It's a case-insensitive match. Both your answer and Luke's would be fine.

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

It wants you to type out the meta tag with the charset in it:

<meta charset="UTF-8">