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

CSS How to Make a Website Responsive Web Design and Testing Website Testing

li guopeng
li guopeng
8,873 Points

Invalid Markup Validation

I get two errors, it's fun to solve them. /*Error Line 8, Column 149: Bad value http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800 for attribute href on element link: Illegal character in query: not a URL code point. …pen+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> */

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

/Error Line 68, Column 51: Bad value http://facebook.com/GuoPeng Li for attribute href on element a: Illegal character in path segment: not a URL code point. … href="http://facebook.com/GuoPeng Li"><img src="img/facebook-wrap.png" alt="F…/

 <a href="http://facebook.com/GuoPeng Li"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>`

1 Answer

Colin Bell
Colin Bell
29,679 Points
  • For the Google stylesheets error, it's the bar character throwing it off. Not a big deal, but if you want to get rid of the error replace it with %7C
<link href='http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> 
                                                        <!-- ^ Here -->
  • Looks like your second error is due to the space in your href URL between GuoPeng and Li.