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

Jermaine Witter
30,978 PointsCannot validate HTML Markup
Hi all,
I'm hoping someone can help. I just completed the make you own website course, but my HTML will not validate and I'm not sure why. It has something to do with the Google fonts but Nicks markup validated fine and mine's identical. Any suggestions will be appreciated? (see error below).
Thanks Hayden. The error I get is
Error Line 7, Column 156: Bad value http://fonts.googleapis.com/css?family=Changa+One:400,400italic|Open+Sans:400italic,700italic,400,700,800 for attribute href on element link: Illegal character in query: not a URL code point. β¦ic|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.
Thanks for the tip on posting code, didn't know it get's stripped out of the post
2 Answers

Jason Anello
Courses Plus Student 94,610 PointsHi Jermaine,
You have to url encode the vertical bar |
that is in the google fonts url.
Replace with %7C

Jermaine Witter
30,978 PointsThanks Jason, that worked.
Hayden Taylor
5,076 PointsHayden Taylor
5,076 PointsWhen you validate your html it usually tells you what it doesn't like.
Could you copy the error that the validator is giving you and edit your question with that stuff in it please.
Also note that if you want to post code put 4 of these together at the start "
" and 4 of them at the end of the code "
" and... that key is the shit tilda key just below the esc key. Put 4 of them sidebyside