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

Katherine Gatz
Katherine Gatz
103 Points

I am not sure what they are asking for when they say to "set the character set"

I am unsure what this refers to

index.html
<!DOCTYPE html>
<html>
  <head>UTF-8</head>
  <body></body>
</html>

1 Answer

Steven Parker
Steven Parker
230,995 Points

You can "set the character set" using a meta tag.

That's what the message saying "Bummer! Remember to add a meta tag to the head tag." was hinting. You did put a valid character set identifier in your head area, but it needs to be inside a meta tag as the charset attribute:

<head>
    <meta charset="UTF-8">
</head>
Brandon Hixon
Brandon Hixon
4,329 Points

Steven is right, your character set or as they say it in HTML your "charset" has to be set using the meta tag. Keep in mind the character set is just telling the browser what characters (letter, number and etc.) it should expect to see.