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 trialSahar Nasiri
7,454 PointsHaving in my HTML code
https://validator.w3.org/nu/#textarea I have an error which I don't know what it is! Can someone help me with this?
Sahar Nasiri
7,454 Points<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sahar Nasiri | Programmer</title>
<link rel="stylesheet" href="css/normalize.css">
<link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700italic,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, intial-scale=1.0">
</head>
<body id="body">
<header>
<a href="index.html" id="logo">
<h1>Sahar Nasiri</h1>
<h2>Programmer</h2>
</a>
<nav>
<ul>
<li><a href ="index.html" class="selected">PoroFolio</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/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>Experimentation with color and texture.</p>
</a>
</li>
<li>
<a href="Img/numbers-06.jpg">
<img src="Img/numbers-06.jpg" alt="">
<p>Experimentation with color and texture.</p>
</a>
</li>
<li>
<a href="Img/numbers-09.jpg">
<img src="Img/numbers-09.jpg" alt="">
<p>Experimentation with color and texture.</p>
</a>
</li>
<li>
<a href="Img/numbers-12.jpg">
<img src="Img/numbers-12.jpg" alt="">
<p>Experimentation with color and texture.</p>
</a>
</li>
</ul>
</section>
<footer>
<a href="https://www.facebook.com/sahar.nasiri.10?fref=ts"><img src="Img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
<p>© 2015 Sahar Nasiri.</p>
</footer>
</div>
</body>
</html>
Yosef VanTine
8,880 Pointsfor some reason the line number you gave didn't seem to show properly. If you want you can just post that one line of code, but from what I can see the errors that the validator show are nothing to worry about and the integrity of the code is absolutely fine.
2 Answers
Oliver Sewell
16,425 PointsYou missed out the head /head and body /body tags in your code , i hope this helps without giving too much away ;)
Yosef VanTine
8,880 Pointscant believe i missed that! :) would have thought the validator would have picked it up as well...
Oliver Sewell
16,425 Pointshaha np !
Sahar Nasiri
7,454 PointsI wrote the head and body tags I don't know why they aren't copied :) I have an error in
<link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700italic,700,800' rel='stylesheet' type='text/css'>
Oliver Sewell
16,425 PointsTry this
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700italic,700,800">
Sahar Nasiri
7,454 PointsI still have an error on
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700italic,700,800">
it says : Error: Bad value https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700italic,700,800 for attribute href on element link: Illegal character in query: not a URL code point.
Yosef VanTine
8,880 PointsYosef VanTine
8,880 Pointspost the code you are having problems with