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

Ben Thomson
Ben Thomson
2,104 Points

I am receiving the following- Bummer! Don't forget a header tag. But my code seems to be correct

Please let me know if this is correct?

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"">
  <title>Ben Thomson | Artist<title>   
  </head>
  <body>
  <header>
    <h1>Hello</h1>  
    <p>Some add ons</p>
  </header>
  <section>
 <p>gallery.</p>
                          </section>
                          <footer>
                          <p>&copy: 2014 ben Thomson.</p>
                          </footer>                
  </body>           
</html>

2 Answers

Stone Preston
Stone Preston
42,016 Points

you have an extra pair of quotes in your charset attribute:

<meta charset="utf-8"">

so remove that

you also did not properly close your title tag:

<title>Ben Thomson | Artist<title>  

so close that properly.

the full code with the fixed errors is below:

<!DOCTYPE html>
<html>
  <head>
    <!-- removed extra " -->
    <meta charset="utf-8">
  <!-- close title tag -->
  <title>Ben Thomson | Artist</title>   
  </head>
  <body>
  <header>
    <h1>Hello</h1>  
    <p>Some add ons</p>
  </header>
  <section>
 <p>gallery.</p>
                          </section>
                          <footer>
                          <p>&copy: 2014 ben Thomson.</p>
                          </footer>                
  </body>           
</html>
Ben Thomson
Ben Thomson
2,104 Points

appreciate it! Thanks

here is some minor correction in your code

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">      /*  remove the extra  ''   */
  <title> Ben Thomson | Artist </title>  /* closing tag must have / before title */
  </head>
  <body>
  <header>
    <h1>Hello</h1>  
    <p> Some add ons </p>
  </header>
  <section>
 <p>gallery.</p>
                          </section>
                          <footer>
                          <p>&copy: 2014 ben Thomson.</p>
                          </footer>                
  </body>           
</html>
Ben Thomson
Ben Thomson
2,104 Points

Appreciate it! I am good to go