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 trialkeith capps
355 PointsAsking me for a style tag??
I need help so i'm doing the challenge and I'm pretty sure i have everything correct but its asking me for a style tag. http://teamtreehouse.com/library/write-a-css-selector-and-property task 1 http://gyazo.com/93d9484dedfd84a7999322ceb0268f3a <--- screenshot of the challenge
5 Answers
eck
43,038 PointsThis should work. The problem is that you had the opening body tag inside the style tag.
<style>
h1 { color: red; }
</style>
<body>
<h1>Bryan Capps</h1>
</body>
James Gill
Courses Plus Student 34,936 PointsKeith, your code should look like this, for example:
<style>
h1{
color: green;
}
</style>
<h1>Some Header</h1>
eck
43,038 Pointsis you CSS surrounded with style tags? Here is an example:
<style>
/* write your CSS rules here */
</style>
keith capps
355 PointsYes http://gyazo.com/93d9484dedfd84a7999322ceb0268f3a here is a picture.
Heidi Mason
16,777 PointsBoth style and h1 tags should go on the inside of the body tags.
Heidi Mason
16,777 PointsNp. This was my first Treehouse forum answer so I'm learning too!
keith capps
355 Pointskeith capps
355 PointsOh thanks a bunch i thought i had to put it above my name from the video. Thanks!
Heidi Mason
16,777 PointsHeidi Mason
16,777 PointsIn real development having the style tags above the body tags works, but I get an error for this exercise unless I put the style tags inside the body:
keith capps
355 Pointskeith capps
355 PointsAlright thanks that helped also.