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 PointsThe noindex question...baffled..
<html> <head> <meta charset="utf-8"> <title>Star Wars Merchandise</title> <meta name="description" content="Shirts and hats for fans of Star Wars"> <link rel="canonical" href="http://mystuff.com/starwars"> <meta name=“robots” content=“noindex”> </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>
<html>
<head>
<meta charset="utf-8">
<title>Star Wars Merchandise</title>
<meta name="description" content="Shirts and hats for fans of Star Wars">
<link rel="canonical" href="http://mystuff.com/starwars">
<meta name=“robots” content=“noindex”>
</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>
5 Answers
Steven Parker
231,269 PointsIt looks like you're using "curly" quotes (word-processor style) instead of programming quotes. Did you copy the line from somewhere and paste it?
Try replacing the quote marks with ones you type in with your keyboard.
Sarah Gleave
1,101 PointsAre you getting confused with curly brackets, who ever heard of curly quotes? I did in fact copy it straight from the video tutorial so I have no idea why its wrong.
Steven Parker
231,269 PointsTo illustrate the difference, here's your original code with "curly quotes" (word-processor style):
<meta name=“robots” content=“noindex”>
And here's the same line with plain (programmer) quotes instead:
<meta name="robots" content="noindex">
On most screens there should be a visible difference, particularly with this enlarged font. Generally, with curly quotes you can see that the left and right sides are actually different characters and slant in opposite directions.
Sarah Gleave
1,101 PointsHi solved myself, it would appear there was in fact nothing wrong with what Id written. This could be a deal breaker as to whether I continue after my trial. Im being told code is wrong when its not.
Steven Parker
231,269 PointsI pasted your code directly into the challenge and it did not recognize it — it said: " Bummer! The noindex code was not found in the head of the document."
But after replacing the quotes it passed.
Sarah Gleave
1,101 PointsOK point made, received and understood. Thanks Steven. What actually happened was I was taking notes in apple notes while watching the video and on this occasion typed the code in to notes and when the Q came up i copied and edited it. Ok you earned your daily dose of smug, thanks as I actually never knew they were different.
Steven Parker
231,269 PointsNo smug here, I'm happy if I was able to contribute to your (and other students') learning.