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 trialKsenia Breitenmoser
20,874 PointsHtml validator detects an error in google fonts link, I have copied from google fonts
Hi! I have used the fonts from google font as described in video: copied it exactly the way it was on google.com/fonts and placed the link between the normalize.css and main.css. However the html validator detected an 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.
From line 7, column 5; to line 7, column 117
css">ā© <link href="https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400i,700,700i,800" rel="stylesheet">ā©
How can I correct it if I should at all?
Thank you
1 Answer
kevin mintel
3,978 Pointswhat i had to do was break it up into two different links cause i got the same problem. so instead of:
<link href="https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400i,700,700i,800" rel="stylesheet">
do this: <link href="https://fonts.googleapis.com/css?family=Changa+One" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700,700i,800" rel="stylesheet">
and that fixed the problem for me hope that helps.
Delia Albert
1,022 PointsDelia Albert
1,022 PointsThis worked for me! Thanks!