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 triala k
2,880 PointsValidation related question: Error at line 7. Any idea what is the error?
Hi all, I get 1 error at line 7 and 3 warnings in validation step in Website testing. Here is the line:
<link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
Any help is appreciated in finding what the error is.
Thank you.
2 Answers
Chris Shaw
26,676 PointsHi a k,
As Theodore said, you need to use markdown when posting code otherwise it won't appear correctly or at all, you can read more about it at Posting Code to the Forum.
To fix this error you simply need to URL encode the pipe |
symbol which results in %7C
, simply change the url to reflect this and your code will validate.
<link href='http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
Happy coding!
a k
2,880 PointsThank you all. That worked, Also thanks for the Markdown Cheatsheet for the code format.
Ted Sumner
Courses Plus Student 17,967 PointsTed Sumner
Courses Plus Student 17,967 PointsUse the Markdown Cheatsheet to format your code quotes. We can then look at your code and help provide answers.