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

HTML code validation problem...

I am having HTML code validation problem at http://validator.w3.org.. It shows the font link is illegal.. Plz resolve this...

My write: <link href="http://fonts.googleapis.com/css?family=Changa+One:400,400italic|Open+Sans:400,300,300italic,400italic,600,600italic,800,700,700italic" rel="stylesheet" type="text/css">

It shows :

Line 7, Column 188: Bad value http://fonts.googleapis.com/css?family=Changa+One:400,400italic|Open+Sans:400,300,300italic,400italic,600,600italic,800,700,700italic for attribute href on element link: Illegal character in query: not a URL code point.

…s:400,300,300italic,400italic,600,600italic,800,700,700italic" 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

2 Answers

Hi ravi, The W3C validator likes non-alphanumeric characters to be encoded as NFC, so by switching the pipe character (|) to %7C, it should validate properly.

Thanks bro .... But i have already corrected it...