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

(How to make a website) Stage 8 Responsive Web Design and Testing

I keep getting an error on line 7 when testing on Validator.W3.org direct input.

Here is my line 7 copied from Nick Pettit on the video:

<link href='http://fonts.googleapis.com/css? family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>

Here is the error that Validator.w3.org refers to:

Line 7, Column 155: 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.

Need help to get pass the web testing!

2 Answers

Philip Cox
Philip Cox
14,818 Points

Hi Stephen. I had to look this up also. After searching on Google, http://stackoverflow.com/questions/22466913/google-fonts-url-break-html5-validation-on-w3-org had the answer. If you have a pipe | in the URL, this can cause an error. Change the | for %7c For example my URL read .....800|Changa+one... Change this to read ....800%7cChanga+one.... and you should be good. Don't be concerned with the minor warnings after this is resolved.

Hope this helps :)

Thanks Philip, your the man!!! It worked perfectly

Philip Cox
Philip Cox
14,818 Points

Happy to help. Glad it worked for. :)