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

what's wrong with my code?

when I run my 'index.html' file through the w3 validator, it comes up with an error. See image attached (the error is at the bottom). does anyone know what this means? thanks!

Imgur

5 Answers

The issue is with the Google Web Font URL.

The | character is invalid in a URL, so to encode the | character change it to %7c

source: http://stackoverflow.com/a/22469221/1756132s

Looks like the href on your font link to google fonts is wrong. Just go back to the site and recopy and paste, you might have missed the last letter or something.

thanks, i tried it but it still comes up with the same error! Does the highlighted red '>' on the w3 validator mean that it's got a problem with that aspect of the code?

Hi,

This stack overflow post may help you understand why its failing validation.

Regards Bob

I had the same problem just a few moments ago, with some help i got the answer, change the + symbol to %20 and the | symbol to %7c and it will work fine. =]