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

Kevin Deconinck
Kevin Deconinck
5,353 Points

W3c validatie HTML file

when i validate my html on validator it gives one error: Line 6, 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'> Syntax of URL: Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.

2 Answers

Hi Kevin,

Just to add on to what Jonathon has said, you'll need to change the pipe symbol to %7C, e.g.

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

Hope that helps :)

-Rich

Jonathon Lumpkin
Jonathon Lumpkin
3,806 Points

Oops, forgot the 7c bit. I remember that causing me trouble when I was validating as well.

No problem, glad you got it sorted :)

-Rich

Jonathon Lumpkin
Jonathon Lumpkin
3,806 Points

Change the pipe symbol (|) to a percent sign. That's what I had to do to make it recognize the code.

Kevin Deconinck
Kevin Deconinck
5,353 Points

Thanks im gonna try this out when i get home !