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 Canonicalization

Hi tis Q is coming up wrong but I can't for the life of me see whats wrong.

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

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

6 Answers

jeffrey bachynski
jeffrey bachynski
5,179 Points

Check the end of the link tag. ;)

If that doesn't help compare it to a sample link tag, here is a W3 Schools example https://www.w3schools.com/tags/tag_link.asp

Hi thanks for your reply, do you mean the last /

jeffrey bachynski
jeffrey bachynski
5,179 Points

Yeah, that is what I am referring to. See W3 Schools for more info https://www.w3schools.com/tags/tag_link.asp

Note In XHTML the <link> tag must be properly closed. This code seems to be implying HTML.

Thanks very helpful.

jeffrey bachynski
jeffrey bachynski
5,179 Points

No problem :) You can mark it as solved if you like just in case anyone else has the same issue, they know there was a solution.

Will do. Thanks again.

jeffrey bachynski
jeffrey bachynski
5,179 Points

No problem, happy learning to you.

How do I mark as solved please?

jeffrey bachynski
jeffrey bachynski
5,179 Points

Good question. Sorry, I am not 100% sure. Is there an upvote option on the right of the answer. Maybe that selects it for you, or are there any other options there?

Tried that, thanks again for your time.

jeffrey bachynski
jeffrey bachynski
5,179 Points

No problem, sorry I don't know how to mark it solved. Someone in another forum post said "You can mark the question solved by choosing a "best answer"." That's all I can find out.