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

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

Isabelle Bamber
PLUS
Isabelle Bamber
Courses Plus Student 2,294 Points

My google font link didn't get validated in the W3C service.

Hi,, my google font in my html main was not validated but i have checked 5 times and its exactly the same code as treehouse? Thanks

4 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi Isabelle,

While it's always good to try and make your code valid, sometimes it's no always possible. Like when putting a script directly in your HTML page. So long as you make sure your code is readable you should be okay.

But we might be able to try and fix it.

When you run your code through the validator, what does it return? :)

Ariel Aronica
Ariel Aronica
6,646 Points

Change " | " to %7C with no space around it.

Hugh Connelly
Hugh Connelly
987 Points

Had same error, solution fixed it. Gracias!

Travis Ramey
Travis Ramey
1,631 Points

is there anyway to know why adding %7C makes it work? I read something about the percent always should be listed but that was never covered in the video. Any reason?

Isabelle Bamber
PLUS
Isabelle Bamber
Courses Plus Student 2,294 Points

Hi, I did try to ad that code in but it didnt work. I ended up changing fonts anyway and when i pasted that google font in, it worked and my whole html5 code got validated :) thanks for you responses.