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

CSS How to Make a Website Responsive Web Design and Testing Website Testing

a k
a k
2,880 Points

Validation 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.

Use the Markdown Cheatsheet to format your code quotes. We can then look at your code and help provide answers.

2 Answers

Chris Shaw
Chris Shaw
26,676 Points

Hi 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
a k
2,880 Points

Thank you all. That worked, Also thanks for the Markdown Cheatsheet for the code format.