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 Noindex and Nofollow

Jacob Christensen
Jacob Christensen
13,171 Points

<meta name=”robots” content=”noindex”> does not work for the first step of the challenge. This looks like a bug to me.

I tried putting <meta name=”robots” content=”noindex”> all over in the head of the document but it says "the noindex code was not found in the head of the document

index.html
<html>
<head>
  <meta charset="utf-8">
  <title>Star Wars Merchandise</title>
  <meta name=”robots” content=”noindex”>
  <meta name="description" content="Shirts and hats for fans of Star Wars">
  <link rel="canonical" href="http://mystuff.com/starwars" />
</head>
<body>
  <h1>Star Wars Merchandise</h1>
  <p>Shirts and hats for fans of Star Wars</p>
  <h2>Boba Fett Shirts</h2>
  <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

Zoltán Holik
Zoltán Holik
3,401 Points

The quotation marks are not valid on the tag. Do not use copy-paste :) :P It is only a short line of code :) you can type it manually. :)

<meta name="robots" content="noindex">