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

Seung Woo Jung
PLUS
Seung Woo Jung
Courses Plus Student 843 Points

meta charset

I am keep getting error with my meta charset, although I am not sure why.

index.html
<!DOCTYPE html>
<html>

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

</html>
Walter Allen
seal-mask
.a{fill-rule:evenodd;}techdegree
Walter Allen
iOS Development with Swift Techdegree Student 16,023 Points

Did you remove any code or text from the previous question? Perhaps the title tags?

OR Did the question ask you to set the charset as UTF-8 and not utf-8. Sometimes the answer checker the Treehouse is using can be a bit finicky.

Seung Woo Jung
Seung Woo Jung
Courses Plus Student 843 Points

yeah, I tried adding <title">"Joseph</title">", and also tried "UTF-8". It doesn't work, which is fine, but it just bugs me. for some reason the tag is literally being omitted. I actually was correct with the title syntax.

1 Answer

Alex Heil
Alex Heil
53,547 Points

hey Seung Woo Jung and Walter Allen ,

in this case the checker is very picky about spaces, means the charset has to be written without space before and after the equal sign, like so:

<meta charset="utf-8">  

that way the code will pass just fine and you can continue on with the challenge. hope that helps you out ;)