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 trialNicholas Sarlo
849 PointsInvalid HTML?
I'm getting this error and can't seem to figure out why Line 7, Column 142: Bad value http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800 for attribute href on element link: Illegal character in query: not a URL code point. …ne|Open+Sans:400italic,700italic,400,700,800" rel='stylesheet' type='text/css'> Syntax of IRI reference: Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.
2 Answers
bothxp
16,510 PointsThis seems to have started happening on http://validator.w3.org
The validator is complaining about the | symbol. To get your html to pass change | to %7C
eg:
<link href="http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400,400italic,700,700italic,800" rel="stylesheet" type="text/css">
Nick Pettit
Treehouse TeacherThanks for spotting this! I added a note to the video: http://teamtreehouse.com/library/how-to-make-a-website/responsive-web-design-and-testing/website-testing
I actually don't think this particular issue is that big of a deal, however. More errors can mean more unpredictable cross-browser results, but that mostly applies to unclosed tags or typos in the names of elements and attributes. If this is the code Google is suggesting, I'm 99% positive it will work everywhere.
Nicholas Sarlo
849 PointsThanks! That's why it was confusing. It seemed to work fine, but I couldn't figure out why I was getting the error.
bothxp
16,510 Pointsbothxp
16,510 PointsNick Pettit I suspect this is going to confuse a lot of new users .... might be worth updating the teacher notes on that lesson.
Nicholas Sarlo
849 PointsNicholas Sarlo
849 PointsThanks a lot!