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

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

meta description and key words

index.html
<html>
<head>
    <meta description="description" content="Shirts and hats for fans of Star Wars,"/>
  <meta name="description" Content="boba fett shirts,shirts and hats for fans of star wars.">
  <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>

1 Answer

You have 1 of the meta tags correct, but it has the values of the keywords instead of the description. replace the keywords with the description of the first meta tag. Heres a comparison of your code and what its supposed to be.

//This is your code
  <meta description="description" content="Shirts and hats for fans of Star Wars,"/>
  <meta name="description" Content="boba fett shirts,shirts and hats for fans of star wars.">

//These are the codes you are looking for, the meta is strong with this one
  <meta name="description" content="Shirts and hats for fans of Stars Wars">
  <meta name="keywords" content="boba fett shirts,shirts and hats for fans of star wars.">

I hope this helps!

Mike.