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 trialCaleb Davis
840 PointsWhy 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
17,730 PointsCaleb, 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
Treehouse Guest TeacherHi 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
32,834 PointsHey 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>