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 trialWanda Taylor
1,691 PointsSelecting the <h1> to add style. I forgot where to add the curly brackets to select it.
Selecting the <h1> to add style. I forgot where to add the curly brackets to select it.
<style></style> {<h1>Nick Pettit</h1>}
<style></style>
{<h1>Nick Pettit</h1>}
2 Answers
Jennifer Nordell
Treehouse TeacherYou add your css style inside the style brackets. Just type h1 to select it. See the below code:
<style>
h1 {
}
</style>
Then add your style rules inside the curly braces there. Font size or color or whatever you need.
Gianmarco Mazzoran
22,076 PointsHi,
you need an element selector, in this case h1
selector.
And since you're going to style them you need to put your code inside the style
tag.
<style>
h1 {
}
</style>
<h1>Nick Pettit</h1>
Here's a quick reference that might help you understand the element selector