Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.