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 trialSarah Gleave
1,101 PointsHi 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>
<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
5,179 PointsCheck 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
Sarah Gleave
1,101 PointsHi thanks for your reply, do you mean the last /
jeffrey bachynski
5,179 PointsYeah, 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.
Sarah Gleave
1,101 PointsThanks very helpful.
jeffrey bachynski
5,179 PointsNo 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.
Sarah Gleave
1,101 PointsWill do. Thanks again.
jeffrey bachynski
5,179 PointsNo problem, happy learning to you.
Sarah Gleave
1,101 PointsHow do I mark as solved please?
jeffrey bachynski
5,179 PointsGood 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?
Sarah Gleave
1,101 PointsTried that, thanks again for your time.
jeffrey bachynski
5,179 PointsNo 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.