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

Yamel Gutierrez
Yamel Gutierrez
152 Points

how to put a element tittle and where?

how to put a element tittle and where

index.html
<!DOCTYPE html>
<html>
    <head>Yamel Gutierrez</head>
  <head>
    <meta charset="otf-8">
    <tittle> Yamel Gutierrez / Diseñadora </tittle>
  </head>
  <body>
    <header>
      <section>
        <p>Gallery will go here.</p>
      </section>
      <footer>
        <p>&copy; 2015 Yamel Gutierrez.</p>
      </footer>
  </body>
</html>

3 Answers

There's only one "head" node, which is where you include your stylesheets, scripts, and metadata. The "title" node goes in the "head" node because essentially it's metadata.

<html>
    <head>
        <!-- Metadata -->
    </head>
    <body>
        <!-- Page structure -->
    </body>
</html>
Yamel Gutierrez
Yamel Gutierrez
152 Points

i dont understand, i cant pass the number 5 question :(

Well, the textual title doesn't go immediately in the head. Assumingly you placed the title in a second head node — instead of in a title node — which doesn't make any sense.

There were a few corrections to be made:

  1. Converting "otf-8" to "UTF-8", and the other being
  2. Converting "<tittle>" to "<title>"
  3. Removing the additional "<title>" tag set from the top of the page.

The resulting HTML should look like this: (if coded correctly)

<!DOCTYPE html>
<html>
  <head> <!-- there can only be one head tag per web page -->
    <meta charset="utf-8">
    <title>Yamel Gutierrez: Yamel Gutierrez / Diseñadora</title>
  </head> <!-- end head tag --> 
  <body>
    <header>
      <section>
        <p>Gallery will go here.</p>
      </section>
      <footer>
        <p>&copy; 2015 Yamel Gutierrez.</p>
      </footer>
  </body>
</html>