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!
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

Viraj Kokane
17,531 PointsPlease help me to resolve the error in index.html
When I checked my index.html in w3 validator it says: Line 7, Column 138: Bad value http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700 for attribute href on element link: Illegal character in query: not a URL code point. …ga+One|Open+Sans:400italic,700italic,400,700' 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. Warning Line 27, Column 15: Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections. <section> I am not getting at it.Please help.

Viraj Kokane
17,531 PointsOpen this link and you will find my whole code: https://w.trhou.se/snlm3sqk10
2 Answers

Ryan Field
Courses Plus Student 21,241 PointsHi, Viraj. The W3C validator prefers non-letter characters to be represented as NFC (so %20
for spaces, etc.), and the pipe character (|
) is what's causing issues here. Changing it to %7C
will fix your validation errors, in this case.

Viraj Kokane
17,531 PointsI am still not getting it. Please can you send the correct url so that I can get it.

Christian Andersson
8,712 PointsHello Viraj,
as Ryan Field correctly mentions, you need to replace your pipe character |
with %7C
. So make the following change on line 7 in your code:
<link href='http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'>
The reason the validator is complaining is because the |
sign isn't a valid UTF-8 character. Here is a full list of UTF-8 encoded characters:
Christian Andersson
8,712 PointsChristian Andersson
8,712 PointsCan you please post your HTML-code here so we can take a look at it?