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 Create the Content Containers

john robertson
john robertson
594 Points

[SOLVED] ,Why is the <title></title> line showing up at the top when I look at my work in Chrome?

my code mirrors the video but I get this

John Robertson | Designer

John Robertson

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <tile>John Robertson | Designer</tile> </head> <body> <header> <h1>John Robertson</h1> <h2>Designer</h2> </header>
<section> <p>Gallery will go here.</p> </section>
<footer> <p>© 2014 John Robertson.</p> </footer> </body> </html>

Wayne Priestley
Wayne Priestley
19,579 Points

Hi John,

Could you please post your html and css so we can take a look and help you out.

;Here is a link to explain how to use Markdown to post your code How to post code If you look at the bottom of the box when your typing a reply you will see Markdown Cheatsheet that will also explain how to post your code

john robertson
john robertson
594 Points

I went to more tools view source and copied couldn't figure out Markdown

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <tile>John Robertson | Designer</tile> </head> <body> <header> <h1>John Robertson</h1> <h2>Designer</h2> </header>
<section> <p>Gallery will go here.</p> </section>
<footer> <p>© 2014 John Robertson.</p> </footer> </body> </html>

when I hit the view work eye and look at it in chrome the title line shows up at the top

John Robertson | Designer

should not be there please advise Thanks

john robertson
john robertson
594 Points

I figured it out I had misspelled title if you look I spelled it tile.

3 Answers

Hi John,

Your title tags will need to be within head tags and your main page content within body tags.

This w3schools page gives an example which should hopefully help demonstrate.

Thanks

-Rich

Shane Anderson
Shane Anderson
2,396 Points

John,

Put your <title> tags within <head> tags. that should fix the issue.

Alexander Stanuga
Alexander Stanuga
11,999 Points

try this out... hope I'm not just making it too easy for you

<!DOCTYPE html>
<html>
/* The content within the head tags will not show up in the browser */
<head> 

<meta charset="utf-8">

/* you also had these tags misspelled, your code had them as 'tile' instead of title */
<title>John Robertson | Designer</title>

</head>

/* the content of your site that becomes viewable in a browser is typically held within the 'body' tag 
<body>

<header>
  <h1>John Robertson</h1>
  <h2>Designer</h2>
</header> 

<section>
  <p>Gallery will go here.</p>
</section>    

<footer>
  <p>&copy; 2014 John Robertson.</p>
</footer>

</body>
</html>

Hope this helps, and I'm not giving away too much