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 trialAgustin Hernandez
2,747 PointsGoogle font not doesn' work https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800
The google link I put doesn't work https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800
4 Answers
rons
3,086 PointsI'm getting the same error.
validator.w3.org states the "|" (pipe) character used in the google URI is invalid.
It's google's way of selecting more than one font. Use of both fonts in this exercise works just fine within the workspace, so the validator probably isn't updated for google font extensibility.
Change the "|" pipe character to "%7C" and it will pass just fine.
Paul Ryan
4,584 PointsMaybe try just using one family first so do something like:
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine">
See does that work
Agustin Hernandez
2,747 PointsIt works but want all of them
Kristin Jones
12,217 PointsHow are you including and using the font?
I just tested the link by coding up a quick sample on codepen and the font seems ok.
Here's the example on codepen.
sizwengubane
15,244 PointsHello bro just paste the code below as the first element of the 'head' section of your html document. <blockquotes>
<link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,800,700italic' rel='stylesheet' type='text/css'>
</blockquotes>
After including the fonts into your html...you must call for the fonts in your css by using the font-family css property
<blockquotes> Example
body {
font-family: 'Changa One', 'Open Sans', sans-serif;
}
</blockquotes> If this works..please vote or mark my answer as the best
chiara capuzzo
1,529 Pointschiara capuzzo
1,529 Pointsit works, thanks!