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 trialeddypoljanec
238 PointsNow, write CSS that will select the h1. Don’t forget your curly braces! Do not know where to put the curly braces ?
This is stage 1 html @ css. If anyone knows please help. thanks.
Eddy
6 Answers
eddypoljanec
238 Pointsthanks Kathryn for your answer. { color:blue; } thanks to everyome else also.
Regards Eddy
Charles Williams
5,197 Points<body> <style> h1 { color: green; } </style> <h1>Nick Pettit</h1> </body>
Fredrik August Madsen-Malmo
16,261 PointsYou type the selector and then the curly braces with styling within them.
Example:
selector {
/* Styling goes here */
}
PS: The selector is what you want to style, in this case <code>h1</code>
Ela Myslimi
3,256 Pointsthis is part of a 2 questions quiz. It is necessary to put the h1{} style selector in between the style tags from the first question
<style>h1{}</style>
Christin Davidian
3,634 Points<style> h1 { color: blue; } </style> <h1>Nick Pettit</h1>
Mario Mitchell
18,789 PointsOr to be specific:
h1 {
font-size:12px;
color:#fff;
}
Make sure to put this in the css file not the html