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

I'm asked to set the character set for this page. I can't figure out what I'm doing wrong. Please help.

<!DOCTYPE html> <html> <head> <meta charset = "utf-8"> <title>me me me | Hello</title> </head> <body>

<header>
  <h1>me me me</h1>
  <h2> hello </h2>
</header> 

<section>
  <p> hello world</p>
</section>  

<footer>
  <p> &copy; 2015.</p>
</footer>

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

    <header>
      <h1>me me me</h1>
      <h2> hello </h2>
    </header> 

    <section>
      <p> hello world</p>
    </section>  

    <footer>
      <p> &copy; 2015.</p>
    </footer>

      </body>
      </html>

1 Answer

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

No space in between charset assignment

<meta charset="utf-8">

I ran the original code through an IDE and its correct, it really doesn't matter if there is a space I think.

William Li
William Li
Courses Plus Student 26,868 Points

I agree with you, man, yours is valid HTML, space is allowed, but the grader can be picky here.

Oh, I see