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 trialDeborah Denenfeld
3,357 PointsGetting two errors in my html validation. What is wrong w ending >
Here is the code: <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
Here is the error: Line 7, Column 142: Bad value http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800 for attribute href on element link: Illegal character in query: not a URL code point. β¦ne|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
2 Answers
Ryan Field
Courses Plus Student 21,242 PointsIt's an issue with Google Fonts URLs using the pipe character (|
). If you replace it with %7C
, it should validate properly.
@import url( http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400italic,700italic,400,700,800);
Deborah Denenfeld
3,357 PointsThank you, Ryan. Weird that this tutorial asks us to do something that can't work. I've wasted a lot of time on this.
Ivan Spodeneyko
6,147 PointsThis does not work for me! That does:
<link href='http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
PS: I didn't figure out how @import works
Richard Nicholls
1,301 PointsRichard Nicholls
1,301 PointsThe same happened to me and I couldn't find out what was wrong. I just copied and pasted the line from google fonts and no matter how many times i did it it still said the same as yours. I have since done a similar task on another tutorial and it was fine