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
Rogelio Ruiz Panotes
Courses Plus Student 383 PointsIn my css, the background color doesn't change despite typing the necessary codes?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Apartment 6B | Designer Bags</title>
<link rel="spreadsheet" href="css/normalize.css">
<link rel="spreadsheet" href="css/main.css">
</head>
<body>
<header>
<a href="index.html">
<h1>Apartment 6B</h1>
<h2>Designer Bags</h2>
</a>
<nav>
<li><a href="index.html">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</nav>
</header>
</body>
<div id="wrapper">
<section>
<ul>
<li><a src="index.html"><img src="img/Apartment-01.jpg" atl=""></a></li>
<p>Grey Bag</p>
<li><a src="index.html"><img src="img/Apartment-02.jpg" atl=""></a></li>
<p>Red Bag</p>
<li><a src="index.html"><img src="img/Apartment-03.jpg" atl=""></a></li>
<p>Red and Black Bag</p>
</ul>
</section>
<footer>
<li><a href="https://facebook.com/beatot24?fref=ts"><img src="img/facebook.png" alt="Facebook logo"></a></li>
<li><a href="https://twitter.com/beabaysa"><img src="img/twitter.png" alt="Twitter logo"></a></li>
<p>© 2014 Apartment 6B</p>
</footer>
</div>
</html>
I've also created a file name main.css and placed it in the css folder. Moreover, I've also made a css rule:
body { background-color: orange; }
So what's wrong?
2 Answers
Samuel Webb
25,370 PointsIn your link tags you're making their rel spreadsheet. It should be stylesheet. Also, you end your body tag after ending your header tag when you should be ending your body right at the end of the file before ending the html tag. The end of your page should look like this:
</footer>
</div>
</body>
</html>
Rogelio Ruiz Panotes
Courses Plus Student 383 PointsTHANK YOUU!!
Samuel Webb
25,370 PointsSamuel Webb
25,370 PointsYou also don't have a starting
htmltag which should come right after theDOCTYPE: