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 trialLisa Rioni
12,372 PointsI 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
Chris Chambers
5,634 PointsHey! 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">
Arun S
3,666 Points<meta name="description" content="Shirts and hats for fans of Star Wars">
Chris Chambers
5,634 PointsThe 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
12,372 PointsNo, 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
12,372 PointsThat 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!
Chris Chambers
5,634 PointsCheers Lisa!
Gregory Dunn
10,254 PointsThis 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
10,254 PointsAh, the space between the tags was important. Crisis averted.
Ruvimbo Meda
5,993 Pointsmeta name="description" content="Shirts & hats for fans of Star Wars">
Ruvimbo Meda
5,993 Pointsmeta name="description" content="Shirts & hats for fans of Star Wars">
MUZ140175 Tendayi Musvibe
7,296 Pointsmeta 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.
Elizabeth Finch
4,149 PointsThe trick is to NOT include the period after Star Wars (see code below).
<meta name="description" content="Shirts & hats for fans of Star Wars">