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

David Aurilin
PLUS
David Aurilin
Courses Plus Student 139 Points

CSS Selector

I there, I'm taking that challenge as a new beginner and I thought I entered the right thing but I kept getting that message "Don't forget your style tag" for that challenge below. Any help please?

We’re starting out with an <h1> element and a <body> element. Add a <style> element just above the <h1>.

Hi David,

Can you post the code you've tried so far so we can see where you might have went wrong?

Here's some tips on how to post code in the forums:
https://teamtreehouse.com/forum/posting-code-to-the-forum

3 Answers

Because you are doing the CSS in the html file you need to wrap all your CSS in a style tag.

<style>Some CSS</style>

This particular challenge requires you to place it above the H1. You need to open and then close the style tag.

David Aurilin
PLUS
David Aurilin
Courses Plus Student 139 Points

Hi Jason,

Sry for the late answer. This is the the one that I'm working on, <body> <h1>Nick Pettit</h1> </body>

And the challenge is, to Add a <style> element just above the <h1>.. I'm actually able to do everything right in workspace, but it's just the challenge that I've found lil bit tricky, loll. I guess I'm gonna have to get myself ready for those kind of tricky challenge a lot. loll. I'm really new on doing this and I really need to learn those stuff to have a better career at my job.

Thanks a lot Jason.