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!
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

Ranish Malhan
Courses Plus Student 37 PointsW3c 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'>
1 Answer

Jeff Jacobson-Swartfager
15,419 PointsYou'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'>

Ranish Malhan
Courses Plus Student 37 PointsThank you very much sir for help It works

Jeff Jacobson-Swartfager
15,419 PointsNo problem! Welcome to Treehouse!
Jeff Jacobson-Swartfager
15,419 PointsJeff Jacobson-Swartfager
15,419 PointsHi Ranish, I've formatted your code in markdown so it will be visible to other students.