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

Issue with wc3 verification

I was following along with the how to build a website course and at the section when you go to http://validator.w3.org/ to verify the code it says that there is an error with this line of code:

<link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,700,800,400' rel='stylesheet' type='text/css'>

I am not sure what is wrong with it... I thought I had it the same as the course, but it was not flagged when he input the code...

Help?

2 Answers

It has issues with the | symbol check out this page on stackoverflow

http://stackoverflow.com/questions/22466913/google-fonts-url-break-html5-validation-on-w3-org

The accepted answer says encode the "|" symbol to %7C

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Jamison,

It's a problem with the url encoding (a bug), you have to replace | with %7C like this.

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

Hope this helps.