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

it doesn't let me keep doing this

A header element needs to appear between the <body> and </body> tags. I did but cant

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Kevin es el mejor hacker | diseñador</title>
  </head>
  <body>Vamos Mexico.</body><header></header>
      <style>
        h1 {
          Color: pink;
      }
        </style>
      <h1>Los mejores hackers</h1>
      <h2>Hackers</h2>
    <section>
      <p>Fotos de portadata van aqui.</p>
    </section>
    <foteer> Camaro 2016.</foteer>
      <p>&copy; 2016 Kevin Martinez.</p>
</html>

2 Answers

LaVaughn Haynes
LaVaughn Haynes
12,397 Points

Some of your code is in the wrong order. All of your CSS should be in the HEAD tags. Your HEADER and everything else goes in the BODY.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Kevin es el mejor hacker | diseñador</title>
    <style>
      h1 {
        color: pink;
      }
    </style>
  </head>
  <body>

    <header>Vamos Mexico</header>
    <h1>Los mejores hackers</h1>
    <h2>Hackers</h2>
    <section>
      <p>Fotos de portadata van aqui.</p>
    </section>
    <footer>
      <p>Camaro 2016.</p>
      <p>&copy; 2016 Kevin Martinez.</p>
    </footer>

  </body>
</html>

Thanks a lot for your answer now i can understand how to do it.