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

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!!!!