HTML How to Make a Website HTML First Use HTML Elements

Don-Alex Antoine
Don-Alex Antoine
3,052 Points

The quiz asked me to set the character set for the page. It typed this: <meta charset= "utf-8"> but it's still wrong

I can't get past this quiz. I am sure that this is how to set the character set.

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

  <body>

  </body>


</html>

2 Answers

Nils Kriedner
Nils Kriedner
Front End Web Development Techdegree Student 19,059 Points

Hi Don-Alex,

it should be the spaces that you have before and after the "=" sign.

I think you should pass if you do not use the spaces, but I am only 99% sure.

Let me know if it's not the spaces!

Happy coding, Nils

PS: You can upvote my post and/or mark as "best answer" (at the bottom of my post) if it helped you. :-)

Don-Alex Antoine
Don-Alex Antoine
3,052 Points

It worked Thank You. Why is HTML so anal about spaces?

Nils Kriedner
Nils Kriedner
Front End Web Development Techdegree Student 19,059 Points

I can't tell you why, I just know that's how it is. ;-)

But you get used to it quite quickly in HTML.

JavaScript ist pretty free concerning spaces, if you would like to mess around with it.