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 How to Make a Website Responsive Web Design and Testing Website Testing

Sardor Latipov
Sardor Latipov
5,609 Points

My external fonts link is error

I am getting this error when I validate my index.html. Does anyone know how to fix it?

css">↩ <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700italic,700|Changa+One' rel='stylesheet' type='text/css'>↩ < Syntax of URL: Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20. Common non-alphanumeric characters other than ! $ & ' ( ) * + - . / : ; = ? @ _ ~ generally must be percent-encoded. For example, the pipe character (|) must be encoded as %7C.

1 Answer

Ben Schroeder
Ben Schroeder
22,818 Points

The validator you're using doesn't like some of the symbols (specifically: + = | ?) Google puts in its fonts code, and thinks you should replace them with percent encoding. Honestly, unless passing through your validator of choice 100% is a big deal for you, you can safely ignore it. Modern browsers aren't going to have an issue understanding the URL Google gave you.

Sardor Latipov
Sardor Latipov
5,609 Points

Thanx Ben. Will I be able to upload my code to server with this error?