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 trialjimmy bryant
3,747 PointsReceived One Error and One Warning During Validation
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jimmy Bryant | Designer</title>
<link rel="stylesheet" href="css/normalize.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">
<link rel="stylesheet" href="css/responsive.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header>
<a href="index.html" id="logo">
<h1>Jimmy Bryant</h1>
<h2>Designer</h2>
</a>
<nav>
<ul>
<li><a href="index.html" class="selected">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<div id="wrapper">
<section>
<ul id="gallery">
<li>
<a href="img/number-01.jpg">
<img src="img/numbers-01.jpg" alt="">
<p>Experimentation with color and texture.</p>
</a>
</li>
<li>
<a href="img/number-02.jpg">
<img src="img/numbers-02.jpg" alt="">
<p>Playng 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>
<footer>
<a href="http://twitter.com/irregulr"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
<a href="http://facebook.com/jimmy.bryant.7146"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
<p>© 2015 Jimmy Bryant.</p>
</footer>
</div>
</body>
</html>
6 Answers
Ryan Field
Courses Plus Student 21,242 PointsIn this case, the error is using the pipe character (|
) in your Google Font URL. Changing it to %7C
will fix the validation error, but this should not affect your CSS being properly applied to your page. If your CSS isn't linking, there's some other issue happening.
Caleb Kleveter
Treehouse Moderator 37,862 PointsIt might be that the HTML and head tags are not there. The HTML tag goes around all the code underneath the doctype, the head tag goes around all meta tags, links to CSS files, and the title tag. Hope this fixes it!
Ryan Field
Courses Plus Student 21,242 PointsIt actually is all there, but if you paste HTML in a reply, it will strip out certain tags if it's not properly enclosed in a code block (using backticks). It appears that his HTML is okay, but I'm wondering if there isn't something in his stylesheets that's preventing styles from being applied.
Caleb Kleveter
Treehouse Moderator 37,862 PointsInteresting, Thanks!
jimmy bryant
3,747 PointsAny more information you guys need from me?
Caleb Kleveter
Treehouse Moderator 37,862 PointsWhat did the errors say?
jimmy bryant
3,747 PointsError: 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. From line 7, column 5; to line 7, column 142 css">↩ <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,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.
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>↩
Also if you populate my index.html in here (http://validator.w3.org/nu/#textarea). From there you will be able to see the error message, it will probably be easier to read than what I said above although I did just Copy/Paste it.
Caleb Kleveter
Treehouse Moderator 37,862 PointsThe URL looks fine to me, I don't know why the Validator thinks it is a bad link. Can you post your CSS?
Caleb Kleveter
Treehouse Moderator 37,862 PointsWhy would the pipe character 'break' it?
jimmy bryant
3,747 PointsYeah that is weird, but that did get rid of the error. Should I be worried about the Warning I got in regards to the <section> tag as well?