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 trialJames Cobb
2,167 PointsSo is the .CSS page suppose to be blank?
I am just trying to figure out if I am supposed to code in the whole .CSS tag for pt.2 or am I just that dumb
<!doctype html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<h1>Welcome to My Web Page!</h1>
</body>
</html>
.h1 {
color: purple;
}
1 Answer
Jonathan Grieve
Treehouse Moderator 91,253 PointsHi James,
Usually, you'll have multiple tabs in your code challenge area to do the work you need to do. However it looks like you have the code you need in the styles.css tab already? :-)
Anthony Quinn
4,432 PointsAnthony Quinn
4,432 PointsIt looks like you have linked your html and css correctly. When you first start the .css file it will be blank, you have to add all your own rules.
One note, in your .css file you are using a period before your h1 rule
.h1
, so this will only apply to any html tags with the class="h1", for examplehtml <div class="h1"></div>
.If you want it to apply to your
html <h1>Welcome to My Web Page!</h1>
tag you should remove the period "." before the h1 in your css rule.