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

Prateek Kedia
Prateek Kedia
8,707 Points

Despite adding meta description tag, error says: no meta description found

I tried <meta description="Boba Fett Shirts and hats for fans of Star Wars">, <meta description="Boba Fett Shirts">, <meta description="Shirts and hats for fans of Star Wars">

but the error always says no meta description found, unable to figure out the error!!!

index.html
<html>
<head>
    <meta charset="utf-8">
  <title>Star Wars Merchandise</title>
  <meta description="Boba Fett Shirts and hats for fans of Star Wars">
</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

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

Hi Prateek,

There are just a couple things going wrong with the code.

First, your syntax for a description is a little bit off. You need a name of "description" and a content with the "description."

Second has to do with how picky the challenges are. You will need to delete the "Boba Fett" and will be good to go.

Corrected line of code:

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

Keep Coding! :)