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

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

Emmanuel Rojas
Emmanuel Rojas
6,994 Points

Message Error

While checking my code with the Validator I got this message

Error: Bad value https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400i,700,700i,800 for attribute href on element link: Illegal character in query: | is not allowed.

I do not know what I did wrong Help!!! please

Neil Ganotisi
Neil Ganotisi
20,975 Points

From what it looks like, the validator does not work because the character '|' cannot work in a URL.

However, we can convert '|' into a Hex ASCII value. In this case, it's 7C.

The validator should interpret the hex value in place of the 'illegal character' as long as you toss a % in front of the value. The final URL should work below.

https://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400,400i,700,700i,800

Additional Source: http://www.w3schools.com/tags/ref_urlencode.asp

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Emmanuel,

Neil is correct in that the validator doesn't like the pipe symbol, but it actually will not affect the performance of your site. The pipe symbol works just fine in HTML and is read by all browsers. So, I would leave the pipe symbol there. Google is not going to provide a link that contains a character that will break your site.

And just a quick note:

When using 'validators' always take it with a 'grain of salt'. Personally, If I were to use a validator, it would only be to do a quick check for anything major. Almost all the time, there will be a few (sometimes many) "errors" according to the so-called validator... most of them you just ignore with no negative consequences to the site.

Keep Coding! :) :dizzy:

Emmanuel Rojas
Emmanuel Rojas
6,994 Points

Thank you very much, I really appreciate your help, you have been very helpful thank you both guys