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

Ricky Deacon
Ricky Deacon
2,163 Points

Illegal 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

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

Daniel Friend
Daniel Friend
2,339 Points

Doing this worked for me as well

Ricky Deacon
Ricky Deacon
2,163 Points

Thanks 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

I don't know about that, unfortunately; maybe the W3C standards were amended.

Steve.

I placed a comma instead of a vertical hyphen, and it seemed to work for me.

Viv Fouracre
Viv Fouracre
9,062 Points

%7C worked for me too, thanks

:+1: :smile: