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 Responsive Web Design and Testing Website Testing

Laksakan Krishnapillai
PLUS
Laksakan Krishnapillai
Courses Plus Student 1,839 Points

Validation error

Error Line 7, Column 129: Bad value http://fonts.googleapis.com/css?family=Lobster|Open+Sans:700italic,400,700,800 for attribute href on element link: Illegal character in query: not a URL code point. …mily=Lobster|Open+Sans:700italic,400,700,800' rel='stylesheet' type='text/css'> Syntax of IRI reference: Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.

5 Answers

Sorry, didn't see the second question at first :-)

I'd have to see the specific part of your html-file to be sure, but I imagine that you've defined a <section></section> part in your html, but did not include a header inside that section. It's considered good practice (symantics-wise) to include a header inside a section. So for example something like this:

<section>
  <h2>section header text</h2>
  <p>rest of the content<p>
</section>

Hmm weird, looks exactly like instructed by Google Fonts. Maybe it will accept it after replacing the | with %7C So just as you need to escape spaces with %20, you could try to escape | with %7C

Laksakan Krishnapillai
PLUS
Laksakan Krishnapillai
Courses Plus Student 1,839 Points

Thank you, it worked but can you explain to me what the %7C does please? and i also have an extra warning for the error:

Warning Line 27, Column 15: Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections. <section>

It's the ASCII value for that character. Sometimes browser do not accept/recognize certain characters (such as spaces), in which case you must use their ASCII counterpart.

Laksakan Krishnapillai
PLUS
Laksakan Krishnapillai
Courses Plus Student 1,839 Points

Thank you, i will try what you have said and get back to you if i occur more problems.