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 trialRicky Deacon
2,163 PointsIllegal character '|' in page validation?
When validating my code on vaalidator.w3.org I get an error stating that the pipe symbol is an illegal character, yet I have only used it in the same way as Nick has in his tutorial. What has happened here, the line of code is below;
<link href='http://fonts.googleapis.com/css?family=Fugaz+One|Copse' rel='stylesheet' type='text/css'>
5 Answers
Steve Hunter
57,712 PointsHi Ricky,
I think you need to use the escape character codes for non-standard stuff like that. Instead of the pipe, try using %7C - that should do it for you, I think.
Steve.
Ricky Deacon
2,163 PointsThanks for the quick response Steve,
I'm still confused how is doesn't show up the error for the Nick though, in the code he copies I can clearly see the same line of code (different fonts) with the pipe symbol
Steve Hunter
57,712 PointsI don't know about that, unfortunately; maybe the W3C standards were amended.
Steve.
mendelbakaleynik
1,009 PointsI placed a comma instead of a vertical hyphen, and it seemed to work for me.
Viv Fouracre
9,062 Points%7C worked for me too, thanks
Steve Hunter
57,712 Points
Daniel Friend
2,339 PointsDaniel Friend
2,339 PointsDoing this worked for me as well