Welcome to the Treehouse Community
Looking to learn something new?
Flavio Vento1,542 Points
Help with an error in my HTML validation.
Line 7, Column 135: Bad value http://fonts.googleapis.com/css?family=Arimo:400,700,400italic,700italic|Fredoka+One for attribute href on element link: Illegal character in query: not a URL code point. …rimo:400,700,400italic,700italic|Fredoka+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.
What does this mean?
Sean T. Unwin28,672 Points
It's a warning given when there are special characters and spaces are found in an URL when validating. You don't have to worry about it, really, in this case. The warning is there because most servers don't like that sort of thing.
The Google Font URL has a pipe ('|') which the validator doesn't like and is requesting that you use escape characters for them, such as what is suggested for spaces --
%20 is the URL encoded character for a space.
Again, in the case of a Google Font URL it's generally considered okay, but if it was an
href for an anchor tag pointing to a typical webpage it would likely result in an error when loading the page.
Jacobus Hindson14,429 Points
Try this URL instead:
Rashid Marri5,825 Points
i have same problem and this my code :
<link href='http://fonts.googleapis.com/css? family=Ubuntu:400,700,500,300|Lobster' rel='stylesheet' type='text/css'>