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 How to Make a Website Responsive Web Design and Testing Website Testing

Errors?

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.

3 Answers

Hello,

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.

Cheers!

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.