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 trial

HTML How to Make a Website Responsive Web Design and Testing Website Testing

Agustin Hernandez
Agustin Hernandez
2,747 Points

Google font not doesn' work https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800

4 Answers

I'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
Paul Ryan
4,584 Points

Maybe 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
Agustin Hernandez
2,747 Points

It works but want all of them

How 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.

Hello 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