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

HTML

Error found when using markup validation.

I copied my index.html into the markup validation and there was one error. It says: Line 7, Column 139: Bad value http://fonts.googleapis.com/css?family=Neuton:400,800,400italic|Changa+One:400,400italic for attribute href on element link: Illegal character in query: not a URL code point. …n:400,800,400italic|Changa+One:400,400italic' rel='stylesheet' type='text/css'>

This is the code I copied straight from the google font website. One thing is I'm not quite sure how to tell where in the line the actual problem is. Once I could figure out which character is the faulty one, not sure how to correct that. Any help would be greatly appreciated. Thank you.

3 Answers

Hi Alex,

There isn't a way to fix this error because of the way Google parse the query string for fonts, rather than using the link tag I would recommend using the JavaScript alternative which you can get in the same spot as the HTML code but instead click on the JavaScript tab, once you've copied the code place it just before your closing body tag for the best performance.

Hey Alex,

Here is a link to a post from a student with the same problem as you have.

https://teamtreehouse.com/forum/html-validation-errors

Hope this helps.

Thank you Chris, that worked! It's weird because the html code worked fine on the video, and I thought I copied exactly what he did. Oh well.