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

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

Hi, validation of index.html on Validator.w3.org returned Error on link refering to font-family

Error: Bad value http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,700,700italic,800,400italic for attribute href on element link: Illegal character in query: not a URL code point.

From line 7, column 5; to line 7, column 142 css">↩ <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,700,700italic,800,400italic' 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.

Why is this?

Regards, Ingebjørg J;_D))

2 Answers

Samson Tudor
Samson Tudor
3,868 Points

Hello,

It is a problem with google fonts code, you must change the break character " | " to utf-8 " %7c" and if in future you will use a link that contains " & " you must convert it to html " &amp ".

" | " --> " %7c "

" & " --> " &amp "

The initial code will give you an error: http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,700,700italic,800,400italic

but if you change the | to %7c it will be valid HTML5: http://fonts.googleapis.com/css?family=Changa+One%7cOpen+Sans:400,700,700italic,800,400italic

I hope it helps, Best Regards

That worked very well, thank's for your indepth answere and explanation :-)

Regards, Ingebjørg J;_D))