Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Hi, I'm having some trouble when i go and validate my code. It say's that there's one error but I don't see whats wrong with the code. Here's where it says the error is: 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'> I don't know whats wrong with my html but there's something wrong.
I put your css code into the W3C CSS validator at http://jigsaw.w3.org/css-validator/ and it told me that there wasn't any type of errors in your code. Check for yourself. Depending on which validator you used and how you gave it your code (uploaded it, pointed the validator to the location, or directly inputted your code) there may have been an error when you provided your code or maybe the validator made a mistake, I checked the code 3 times using direct input and it passed all three times. Your code is fine.
I guess the validator i was using just wasn't working? Thanks. It worked on jigsaw. :)
You need to url encode the pipe character
| (vertical bar). Replace the
| in the google fonts url with
%7C to fix the error.
You should be using the html validator to validate your html which I think you were using originally when you received the error. The css validator is only going to validate css.