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!
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

Stephen Calderon
4,564 PointsIn my basic attributes lesson. My css code is still not being applied to my web page. Im using a workspace. Please help.
<!DOCTYPE html>
<html>
<head>
<title>Attribute Selectors</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<h1 class="main-heading">CSS Attribute Selectors</h1>
<p>
<span class="highlight"> Lorem idjsfi ishheih whiih</span>, jihe ewjjjs kkjkjfd ksjds skj
</p>
<a href="#" class="foo">Duis ut ehwh kjnndnsks</a>
<p>
ewgwgwrgrwgwrgewgreahaehaerhsh. <a href="#" class="bar"> ewrtwetewtewtwetewtewte</a> erwerewrewrewrewrewrewrewrewr
</p>
<a href="#" target="_blank">view more in a new tab »</a>
<form class="e-form">
<input type="text" name="email">
<input type="submit" name="submit">
</form>
</body>
</html>
2 Answers

Luke DePass
6,843 PointsHi Stephen,
Is it possible that your CSS file is in a different directory than the one you are linking to? You have:
<link rel="stylesheet" href="css/style.css">
This means style.css should be in the CSS folder, and the CSS folder should be in the same folder as your HTML file.
If your style.css file is in the same folder as your HTML file, you should link to style.css like this:
<link rel="stylesheet" href="style.css">
I hope this helps!

Stephen Calderon
4,564 PointsTHAT WORKED! THANX!!!

Robert Richey
Courses Plus Student 16,352 PointsHi Stephen,
Is the name of your CSS file style.css
and is it located in the css
folder?
Stephen Calderon
4,564 PointsStephen Calderon
4,564 PointsHERES MY CSS