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

HTML error in W3C input

So in the validator check, I put in my html code and it gives me 1 error. The error is in my font link. It says, "Bad value..." and "illegal character in query: not a URL code point." Has anyone else had this problem? I'm pretty sure it's correct as I copied and pasted directly from Google fonts. I've tried it multiple times just to be sure it's correct and it is. Can someone help?

2 Answers

If you have a vertical bar | in the url then you have to url encode it.

Replace it with %7C

Wow! Amazing! Thanks a bunch! Does this happen often? Do I always have to change it to this?

You're welcome. I'm not sure why google gives the urls like that and doesn't just put in the %7C for you but as long as they're doing that you'll have to replace yourself if you want to get rid of the error. I've seen some links that have more than one vertical bar so you'll want to make sure you've replaced them all.