Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website HTML First Use HTML Elements

Question 4 of the test challenge, Web design, html, Set the character set for the page, I'm getting an error...

Why I'm getting this feedback? What am I missing here?

"Remember to add a character set attribute for your meta tag."

<!DOCTYPE html> <html> <head> <meta charset= "utf-8"> </head> <body></body> </html>

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset=  "utf-8">
  </head>
  <body></body>
</html>

Do not include spaces between equal sign and "utf-8" and it works

2 Answers

Hi, AJ! It looks like you have two extra spaces between the "=" symbol and your character set. You'll want it to look like this:

<meta charset="UTF-8">

It doesn't really make a difference whether or not you choose to capitalize the UTF as I did above, but most guidelines will tell you that's it's generally preferred.

Awesome Keri, that worked! Thank you!!!!