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

SEO BASIC

Challenge Task 2 of 2

The link to hats.com been added to your page merely for testing purposes. Use the proper "nofollow" code to ensure search engines don't give it any SEO value.

no follow my syntax no work.

index.html
<html>
<head>
  <meta charset="utf-8">
  <title>Star Wars Merchandise</title>
  <meta name="robots" content="Shirts and hats for fans of Star Wars noindex">
  <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"> rel="nofollow">Hats and More</a></p>
</body>
</html>

4 Answers

Like Jeff is saying, you need to write:

<a href="http://hats.com" rel="nofollow">

not:

<a href="http://hats.com"> rel="nofollow">
Jeff Lemay
Jeff Lemay
14,268 Points

You closed the anchor tag after the href and before the nofolllow. Just remove the angle bracket before rel="nofollow".

rel="nofollow">

Thank Tobias.... cool...