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 trialNikhil Khandelwal
9,371 PointsW3 validator showing error in my code about google fonts
Error: Bad value http://fonts.googleapis.com/css?family=Montserrat|Lora|Dosis|Sigmar+One for attribute href on element link: Illegal character in query: not a URL code point.
From line 7, column 7; to line 7, column 124
s">↩ <link href='http://fonts.googleapis.com/css?family=Montserrat|Lora|Dosis|Sigmar+One' 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.
1 Answer
Ingebjørg Synnøve Thoresen
2,131 PointsHi Nix,
I got the following answere from Samson Tudor:
"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 " & ".
" | " --> " %7c "
" & " --> " & "
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"
Ingebjørg J;_D))
Nikhil Khandelwal
9,371 PointsThank you !!! :)
Ingebjørg Synnøve Thoresen
2,131 PointsIngebjørg Synnøve Thoresen
2,131 PointsHai Nix,
I got the following answere from Samson Tudor:
"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 " & ".
" | " --> " %7c "
" & " --> " & "
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"
Ingebjørg J;_D))