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 trialDaniel Coelho
8,329 PointsHtml Validation
Hey, My code fails to validate on the Markup validation tool.
I get the following error:
Validation Output: 1 Error
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 IRI reference:
Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.
I've checked the URL, the fonts are working and the markup is just as the example in the video.
Here is my code for that section:
/* <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>*/
Found the solution in the following post. Sorry for cluttering.
White testing the html code on validator.w3.org it throws an error message. Jegnesh Gehlot 1,518 2 days ago
Error Message: Line 7, Column 122: Bad value http://fonts.googleapis.com/css?family=Ubuntu:400,500italic|Open+Sans for attribute href on element link: Illegal character in query: not a URL code point.
Fix: It doesn't recognize | symbol so instead use %7c
1 Answer
Pedro Cabral
Full Stack JavaScript Techdegree Student 23,916 PointsSomeone run over the same issue over here.