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

My html code doesn't pass validation.

Hi, all. I tried to validate my html and finally got an error. I figured out that a source of the error is a string: "<link rel="stylesheet" type="text/css" href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800'>". And this string was generated by Google API. So, could you help me to find out why it is? And how can I avoid it?

3 Answers

Hi Bakhytzhan,

If the error is coming from the google fonts url then it might be the pipe character | You can url encode that character if you'd like to get rid of the error. Replace | with %7C That's the code for the pipe character (vertical bar)

If it was something else then please be more specific and someone can try to help you.

As Emanuel mentioned, you may not have to worry about it.

Ran through the same error when I tried to validate my html, and it was the same Google API prob. Don't worry about it that much. If the page displays correctly when testing with browserstack.com, then there's no problem at all.

Thanks a lot! I replaced "|" with "%7C" as Jason suggested, and code finally passed validation.