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

Adam Maley
Adam Maley
5,946 Points

When testing code on validator.w3.org, I got 2 errors.

Error 1: Bad value https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic,800 for attribute href on element link: Illegal character in query: | is not allowed. From line 7, column 5; to line 7, column 143 css">ā†© <link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic,800' 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.

Error 2: Warning: Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections. From line 27, column 7; to line 27, column 15 r">ā†© <section>ā†©

Here is my actual code for for error 1:

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

And here for error 2:

<section> <ul id="gallery"> <li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> <p>Experimentation with color and texture.</p> </a> </li> <li> <a href="img/numbers-02.jpg"> <img src="img/numbers-02.jpg" alt=""> <p>Playing with blending modes in Photoshop.</p> </a> </li> <li> <a href="img/numbers-06.jpg"> <img src="img/numbers-06.jpg" alt=""> <p>Trying to create an 80's style of glows.</p> </a> </li> <li> <a href="img/numbers-09.jpg"> <img src="img/numbers-09.jpg" alt=""> <p>Drips created using Photoshop brushes.</p> </a> </li> <li> <a href="img/numbers-12.jpg"> <img src="img/numbers-12.jpg" alt=""> <p>Creating shapes using repetition.</p> </a> </li> </ul> </section>

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

Hey Adam,

Neither of those errors are noteworthy, nor will they affect the performance of your site.

I personally put very little thought into the "Code Checkers." Sure, they can be useful the odd time, but for the most part... pretty useless... but that is just my opinion (I'm sure there are others who will disagree).

As for your errors... the checker just doesn't like the pipe symbol in the google fonts link. If you want you could replace that with the HTML entity &#124;, but it will work just fine with the symbol.

Your second "error" is complaining that you don't have any heading tags. In reality, many sites just use an <h1> and that's it. That's all you want and that's all you may need, but the checker wants more...

So, I hope that clears it up for you. It's up to you how much value you want to put into the so-called "code checkers"

Keep Coding! :) :dizzy:

Adam Maley
Adam Maley
5,946 Points

Good to know, Thank you! :)