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

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

Caleb Davis
Caleb Davis
840 Points

Why wont my style tags work?

I really do not understand what mistakes I am making here. My code is as follows:

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

I just don't understand why it says its wrong.

3 Answers

Andrew McCormick
Andrew McCormick
17,730 Points

Caleb, I really think you need to re-watch the video before this challenge. beginning-html-and-css/add-style-to-the-page . Nick spells it out at about the 2:00 mark exactly what you need.

Naomi Freeman
STAFF
Naomi Freeman
Treehouse Guest Teacher

Hi Caleb,

Please put

three of these `

before and after your code. It's beside the 1 on the keyboard :) Right now your code is invisible.

Kevin Kenger
Kevin Kenger
32,834 Points

Hey Caleb,

The goal isn't to put the h1 element inside of the style tags. Just to put opening and closing tags before your h1 element.

Try this:

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