Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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