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.

HTML How to Make a Website Responsive Web Design and Testing Website Testing

Stephen Wilson
PLUS
Stephen Wilson
Courses Plus Student 1,873 Points

(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 :)

Philip Cox
Philip Cox
14,818 Points

Happy to help. Glad it worked for. :)