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

Sam Bartlett
Sam Bartlett
3,965 Points

Where do I insert the title tag? I put it within the <head><head/> and it doesn't seem to be working.

I entered <title>Star Wars Merchandise<title/> under <head> and above <head/>...Is this not correct? When I do the </head> has a red line underneath to say it is incorrect.

index.html
<html>
<head>
    <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>

3 Answers

Hello,

You've made a simple error by placing the "/" in closing <title/> in the wrong place.

your code:

I entered <title>Star Wars Merchandise<title/> under

Correct code:

I entered <title>Star Wars Merchandise</title> under

The Riki's post above mine is correct but I thought i'd explain the issue here :)

It works for me when I add <title>Star Wars Merchandise</title> inside the head tag. Are you writing it correctly?

To clarify, you close a tag like this </tag> not like this <tag/>

Hope this helps :)