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 trialMichael Owens
5,591 PointsCannot validate html code. Used download's package's code.
At the time of my viewing, 01/09/15, I was unable to validate my html code on: http://validator.w3.org/#validate_by_input
To ensure it wasn't error on my part, I downloaded the zip associated with the video under downloads.
I opened the zip's index.html, copied and pasted that code into the validator and received the same errors that my code received.
2 Answers
Adam Young
15,791 PointsThis is actually explained in the Teacher's notes for the video:
"You may encounter validation errors when using the W3C validators. For example, in this project, the vertical pipes in a Google Font URL might cause an error because they're not escaped using HTML entities. It's a good idea to fix as many errors as possible, because more errors can mean increasingly unpredictable cross-browser results."
Michael Owens
5,591 PointsHow do you escape the pipes?
Adam Young
15,791 Points<link href='http://fonts.googleapis.com/css?family=Changa+One%7C;Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
will allow this HTML to validate.
Here's a link with more info: