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 trialSuzanne Reeve
1,582 PointsWC3 Markup Validation Error
I am getting an error when I test my index.html file. I went through the whole file and it's really not any different than Nick's file in the video. The error I get is: Error Line 7, Column 142: Bad value http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800 for attribute href on element link: Illegal character in query: not a URL code point.
Could you please help?
Thanks Suzanne
3 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Suzanne,
The validator is giving you an error about the vertical bar |
This is considered an unsafe character and should be url encoded.
Replace the vertical bar with %7C
and that should get rid of the error. I think that the validator must have been updated to catch this since the time Nick recorded the video and so it doesn't show up for him.
Dustin Matlock
33,856 PointsSuzanne, here's also a guide on unsafe characters in URLs if you're interested in what's safe and what should be encoded.