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

Tristan van der Merwe
Tristan van der Merwe
1,405 Points

Set the character set for the page.

I've tried everything. I even made the = a +. It keeps on giving me an error.

Please get back to me.

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

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

3 Answers

Steven Parker
Steven Parker
231,261 Points

Make sure there's no space between the angle ("<") and the tag name.

Having a space there will prevent the tag from being recognized by the browser.

Harshal Mundhe
Harshal Mundhe
3,325 Points

THE RIGHT CODE IS...

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

Steven Parker
Steven Parker
231,261 Points

:x: This is not correct.

While this might get by the challenge, it's not actually correct. Tristan already had the correct charset name. "utf-5" is not a valid charset value.

Harshal Mundhe
Harshal Mundhe
3,325 Points

But i put that value and the challenge goes correct.

Steven Parker
Steven Parker
231,261 Points

:beetle: There's a bug in the challenge checker.

You can also pass using: charset="moof", but that's not correct either.

Maksym's comment above shows the correct solution.