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

Anthony Liu
Anthony Liu
11,374 Points

Website Testing problem

When I enter my html code into validator.w3.org, it gives me an error that

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.

2 Answers

The vertical bar | needs to be url encoded with %7C

You're welcome.

Change the | character (between One & Open) to &7c instead. So, the link should read:

http://fonts.googleapis.com/css?family=Changa+One&7cOpen+Sans:400italic,700italic,400,700,800
Anthony Liu
Anthony Liu
11,374 Points

It gives me the error & did not start a character reference. (& probably should have been escaped as &.)