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 trialLuca De Vita
327 PointsHow am I suppose to write CSS that will select h1?
It says ''bummer! Make sure you put curly braces'', but I don't understand where in the code im supposed ton put this.
3 Answers
Lorenzo Pieri
19,772 PointsWell, it goes like this:
h1 {
Property : Property Value;
}
Dont forget to open \ close the curly braces { } each time you work with a different declaration
Braeden Adams
1,527 Pointswell it depends on what your h1 is inside of, if its inside your body you would type
body h1 {
"code goes here"
}
Damon Johnson
Courses Plus Student 2,775 PointsHey,
Its difficult to comment without seeing your code, but I guess its referring to there { }
They should be somewhere like this:
<body>
<style>
h1 {
color: red;
}
</style>
<h1>Nick Pettit</h1>
</body>
=)