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

Business SEO Basics Better SEO Through Code Title Tag and Meta Description

Brentley Stead
Brentley Stead
192 Points

Where should the title tag go in the code?

I've tried inserting a title tag in multiple spots but I'm pretty sure this is correct, where am I going wrong?

index.html
<html>
<head>
  <title> Star Wars Merchandise </title>
    <meta charset="utf-8">
</head>
<body>
    <p>Star Wars Merchandise</p>
    <p>Boba Fett Shirts</p>
    <p>Available in white; sizes S-M-L-XL</p>
    <p>Darth Maul Hat</p>
    <p>Available in black or white at <a href="http://hats.com">Hats.com</a></p>
</body>
</html>

4 Answers

Timothy Nisonger
Timothy Nisonger
6,177 Points

Try to insert the meta charset tag above the title tag and indent one tab over from the head tag, aligned with the title tag.

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

Get rid of the spaces on either side of 'Star Wars Merchandise'.

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

This might sound wired, but try lining it up with the meta tag in the indentation.

Brentley Stead
Brentley Stead
192 Points

Hey guys, I tried both suggestions and neither of them worked. Do I have it in the right spot?