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
Is there a reason I get the following error when I try validating my code using http://validator.w3.org/check
Error 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.
It claims the error is the closing '>' on the piece of code that I pasted from Google fonts but that '>' came with the code and so I am confused why it is shooting it as an error. Thanks!
Hi Henry, you just need to use URL encoding for the
| character. You may be able to get that corrected by sending a request to support. Just let them know the pipe symbol does not validate. I'm not sure why Google Fonts isn't using
%7C to encode the pipe symbol for web standards.
<link href='http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
Thanks for the replies! Dustin it worked with URL encoding, thank you for the help!