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

W3c validation error Bad value for attribute href on element link: Illegal character in a query: not a URL code point.

W3c validation error Bad value for attribute href on element link: Illegal character in a query: not a URL code point. [HTML5] Pls help!!!! I have given the code below:

    <link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700|Roboto+Condensed:300italic,400italic,700italic,400,300,700|Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
Jeff Jacobson-Swartfager
Jeff Jacobson-Swartfager
15,419 Points

Hi Ranish, I've formatted your code in markdown so it will be visible to other students.

1 Answer

Jeff Jacobson-Swartfager
Jeff Jacobson-Swartfager
15,419 Points

You've almost got it! You just need to url encode both of the | in your href. The encoding for | is %7C.

So, you should use this instead:

    <link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700%7CRoboto+Condensed:300italic,400italic,700italic,400,300,700%7CRoboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>

Thank you very much sir for help It works