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

Lisa Rioni
Lisa Rioni
12,372 Points

I am pretty sure the answer is <meta name="description" content="Boba Fett Shirts">

Am I misinterpreting the question? Typo? I have written thousands of description Meta tags. I am stumped here.

11 Answers

Hey! Sorry about that. My first time trying to help out. Didn't realize it wouldn't take me to the task that generated the question.

Challenge task 2 of 2 Add a meta description to the page. Use the text found in the second paragraph: "Shirts and hats for fans of Star Wars".

I would have been confused too! It seems like it's pointing you toward the text in the second <p> tag, but I got a passing grade when I used the text in the task description.

<meta name="description" content="Shirts and hats for fans of Star Wars">

<meta name="description" content="Shirts and hats for fans of Star Wars">

The challenge is: Add a Title tag to this page and name it "Star Wars Merchandise".

It's looking for you to add a <title> tag to the <head> to name the browser window, not to add meta information. Don't forget to close your tag!

Lisa Rioni
Lisa Rioni
12,372 Points

No, the title tag challenge was the previous question and I did that one. The question I am on is Challenge task 2 of 2 - Add a meta description to the page. Use the text found in the second paragraph: "Shirts and hats for fans of Star Wars". I tried putting that in the content attribute, and I tried putting the contents of the second paragraph "Boba Fett Shirts". I am at a loss.

Lisa Rioni
Lisa Rioni
12,372 Points

That was the first thing I tried and it said that was wrong. I tried that about 5 times. I just tried it again though and it worked this time. Thanks for your help Chris!

Cheers Lisa!

Gregory Dunn
Gregory Dunn
10,254 Points

This will not pass for me in the first stage.

<head>
    <meta charset="utf-8">
  <title> Star Wars Merchandise </title>
</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>
Gregory Dunn
Gregory Dunn
10,254 Points

Ah, the space between the tags was important. Crisis averted.

meta name="description" content="Shirts & hats for fans of Star Wars">

meta name="description" content="Shirts & hats for fans of Star Wars">

meta name="description"content="Shirts and hats for fans of Star Wars">

Spacing and capitalization was confusing me but finally i had the correct answer which i illustrated above.

The trick is to NOT include the period after Star Wars (see code below).

<meta name="description" content="Shirts & hats for fans of Star Wars">