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

HTML

Validation code error

I get a code error when I try to validate my html and can't work out how to clear it. As far as I can see my code is the same as Nick's so I must be missing something.

I don't even know how to attach a screenshot so you can see what I am talking about. Please help!!!

Hi Su,

To post an image you need to use markdown which you can learn about here, in short the markdown you want to use for an image is as below.

![alt text here](/path/to/img.jpg)

NOTE: You will need to first upload the image to a 3rd party website first such as imgur who supply the markdown code as well.

And now I've added an answer instead of a comment. I am not having my finest day!

Thank you for the response by the way Chris. Much appreciated.

2 Answers

Hi Su,

Don't worry about your above post, if you wish you can simply post it again as a comment but that's up to you. To fix the validation error you simply need to encode the pipe | character which when URL encoded becomes %7C, it's hard to see but the change has been made in the code below.

<link href='http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>

Happy coding!

Thank you!

You're welcome.

Here is the code that seems to be the problem:

 <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>

I am also having problems validating my CSS as it keeps querying characters that are 'not allowed in the prolog'. Feel like I might have to go back to the beginning...