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 trialMartin Park
12,792 PointsGoogle font link not being validated?
Hi,
I'm in the middle of the "How to Make a Website" tutorital. I'm at the validation process and trying to validate the index.html. My code seems to be the same as Nick's but I'm getting 1 warning upon validation?
It seems to be an error with the google font link, which would have just been copied and pasted:
Error: 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. From line 7, column 5; to line 7, column 142 css">↩ <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' 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.
I could just ignore it but wondered if someone more experienced can see what the problem is quite easily?
Many thanks
Martin
2 Answers
Rich Bagley
25,869 PointsHi Martin,
Can you try replacing the pipe (|) in the url with %7C please?
Does that resolve the issue?
-Rich
Andres Martinez
1,966 PointsSame issue, same resolution! Thanks for the help Rich!
Martin Park
12,792 PointsMartin Park
12,792 PointsThanks Rich, I thought it might be something like that but wasn't exactly sure which character was the problem - or what to change it to! Thank you. I can move on without my OCD bothering me too much :) Cheers
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsNo problem :)
-Rich
stevenstabile
9,763 Pointsstevenstabile
9,763 PointsThanks Rich. I had the same issue as Martin.
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsGlad you got it sorted :)
-Rich