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 trial

CSS How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

Anthony Lo Giudice
Anthony Lo Giudice
151 Points

We're starting out with an <h1> element and a <body> element. Add a <style> element just above the <h1>. so what do i do

Help

index.html
<body> 
    <h1>Nick Pettit</h1>
</body>

4 Answers

Anthony- You are adding an opening and closing style element just above the <h1> element. So your code will look like this:

<body>
<style></style>
 <h1>Nick Pettit</h1>
</body>

I did the challenge you are working on and it passed.

Well the code disappeared :( I'll try again

I believe it's asking you to add a style element just about the h1 tags.

<body> 
    <!--style element would go here-->
    <h1>Nick Pettit</h1>
</body>
Anthony Lo Giudice
Anthony Lo Giudice
151 Points

can you show me the exast postion

Abe Layee
Abe Layee
8,378 Points

You have to add the style element above the heading one/h1 element like Chris Shearon said.

<body>
   <style>

     </style>
    <h1>Nick Pettit</h1>
</body>
<body>
<style></style>
<h1>Nick Pettit</h1>
</body>