Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Michael Grant
1,847 PointsValidate HTML
I went on the validate HTML website. It told me
It told me this:
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.
…ne|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
Syntax of URL: Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.
Here is the code from Line 7:
<link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
3 Answers

Marcus Parsons
15,718 PointsHey Michael,
All you have to do is encode the | sign in the URL to a %7C.
<link href='http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>

Marcus Parsons
15,718 PointsEncode spaces to be %20 so "Me 2.jpg" becomes "Me%202.jpg". The best way to avoid this is to not use spaces in your file name.

Michael Grant
1,847 PointsOK. Thanks. that worked. Also got a validation error for this:
<img src="img/Me 2.jpg" alt="Photograph of Michael Grant" class="profile-photo">
Error: Line 28, Column 88: Bad value img/Me 2.jpg for attribute src on element img: Illegal character in path segment: not a URL code point.

Michael Grant
1,847 PointsOK. Thank you again.

Marcus Parsons
15,718 PointsYou're welcome!
Michael Grant
1,847 PointsMichael Grant
1,847 PointsThis is the code from Line 7
<link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>