Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Sharing a Website Find a Domain

When checking my index.html file code in the Validator, the font style reference code (copied from Google) doesn't pass.

The response is that there is an "illegal character in query: not a URL code point." To see if there was something I was just not catching in my code, I copy-and-pasted the source code from Nick's sample website (treehousewebsite.com) and the Validator said the same thing. Has there been a new rule in the validation process that is now not accepting the code that Google creates for using its fonts? And is this something I should be concerned about?

2 Answers

lordcozycat
lordcozycat
11,940 Points

The pipe character ( | ) isn't valid, and should be replaced with %7C. I'm not sure it breaks anything if you leave it in, but to be safe, it's an easy fix :)

Hope that fixes things.

Ah! I was wondering about that... Thanks for the help!

You can also change the (|) with %20 as a space. Also with this, in the demonstration video, why do you (Nick) pass with no errors although you use the pipe character in your code?

Peter Mumford
Peter Mumford
7,774 Points

Check to see if quotes have somehow been converted to curly-quotes. It happens all the time, and its a pain.

If you use a good text editor (coda, sublime text, etc) it should highlight stuff like that and make it easy to find.