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

Google fonts pipe symbol fails w3c validator

My index.html failed the W3C validator because Google Fonts supplied an unencoded pipe symbol in the HTML Link tag. I was able to get it to pass by replacing the pipe symbol with the HTML code "%7CPT+".

I had the same problem. Actually it is just "%7C". The "PT+" part is for the font "PT Serif", compare: https://www.google.com/fonts/specimen/PT+Serif

2 Answers

Justin Hunter
PLUS
Justin Hunter
Courses Plus Student 11,484 Points

Hi Chris, I had a similar issue when running the HTML validator. The snipet of code from Google Web Fonts failed. However, the site renders exactly as I expected it to, so I'm not sure if it's an issue on the validator's end or Google's.

hi i try %7C, or &#124 and nothing works. Where did you found %7C ? and where do you put it inside inside the link ? <link href='http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>

or i tried also : <link href='http://fonts.googleapis.com/css?family=Changa+One %7C Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>

and also with ""

so it makes me crazy