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

HTML first course question

Why is head at the top of my page and not invisible?

12 Answers

I figured it out... my <head> was >head>

Thank you everyone for the help..

<!DOCTYPE html>
<html>
  >head>
    <meta charset="utf-8">
    <title> John King | Designer</title>
  </head>
  <body>
    <header>
      <a href="index.html"
        <h1>John King</h1>
        <h2>Designer</h2>
      </a>
    <nav>
      <ul>
        <li><a href="index.html">Portfolio</a></li>
        <li><a href="about.html">About</a></li>
        <li><a href="contact.html">Contact</a></li>
      </ul>
    </nav>
    </header>
    <section>
      <p>Gallery will go here.</p>
    </section>
    <footer>
      <p>&copy; 2014 John King.</p>
    </footer>
  </body>
</html>

head> John King Designer

Portfolio About Contact Gallery will go here.

© 2014 John King.

Forum won't even let me post my question correctly.. Dang. very frustrated.

James Barnett
James Barnett
39,199 Points

The forum uses markdown to correctly format code, check out this thread on how to type code in the forum for some examples.

Kevin Naegele
Kevin Naegele
10,868 Points

the head tag is for data that the internet browsers looks at, and it is the first thing that loads. This tag most of the time holds the CSS so the pages looks right, and data like google analytics . The <h1> through <h4> labels the importance of the data on the page.

I hope this makes sense.

Sonya K. Bailey
Sonya K. Bailey
18,108 Points

If I understand your question correctly, you're missing the opening < angle bracket before head. Everything in the head section needs to be enclosed in head tags or things don't display properly. <head>
content </head>

No.. My page says everything it is supposed to say but up at the top it actually says HEAD in the brackets.. How do i get rid of that? I've did something wrong..

Sonya K. Bailey
Sonya K. Bailey
18,108 Points

It's hard to say without seeing your code. I've usually seen that happen when one of the html tags is missing an opening or closing bracket somewhere in the file. Or, when a closing tag is missing or doesn't include the forward slash at the beginning. I've only seen it happen as the result of a typo. In an earlier reply James Barnett was nice enough to include a link to how to enter code in the forum. This could help you include your code in the forum so it will be easier to find the problem.

<!DOCTYPE html> <html>

head> <meta charset="utf-8"> <title> John King | Designer</title> </head> <body> <header> <a href="index.html" <h1>John King</h1> <h2>Designer</h2> </a> <nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <section> <p>Gallery will go here.</p> </section> <footer> <p>© 2014 John King.</p> </footer> </body> </html>

not sure if the above was correct.. I'm very frustrated. This is just my first lesson on here. Wow. All I want to do is be able for the <head> HEAD not to show up on the page..

Sonya K. Bailey
Sonya K. Bailey
18,108 Points

Thanks. The angle bracket before the word head is facing the wrong way. It should be.

<head>
James Barnett
James Barnett
39,199 Points

John King -

Here's a hint, check out line 3, your head tag as an misplaced angle bracket.

If you need any more help just let us know in this thread.

I figured it out before reading both of your messages :) but thank you... Must have been great timing. Sorry to be a newbie turd.. hahah

James Barnett
James Barnett
39,199 Points

We welcome newbie questions here on the forum.

I would add for future reference, help us help you by checking out how to ask good questions on the forum.