Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Why is this not right?

The preview looks fine, but it keeps giving me the error that I didn't add the style tag.

index.html
<style>
  h1 {color: red;
  }
</style>

<body>
    <h1>Sherreka Burton</h1>
</body>

2 Answers

Ok, well I think they want you to place the style element right above the header. That is in this case the h1.

Try placing the style tags between body and h1 :)

Thanks, Saskia! That was it!

you are welcome :)

Hi Sherreka,

what exactly is the challenge asking from you? Word by word?

Usually, if you place style tags within the html, you'd either place them within the

<head>
<style></style>
</head> 

or as a style attribute right with the corresponding item that needs styling. In this case like that:

<h1 style="color: red;">Sherreka Burton</h1>

But I do not know the exact task you need to fulfill, so it is hard fo rme to answer your question ;)

Here are the instructions: "We're starting out with an <h1> element and a <body> element. Add a <style> element just above the <h1>."

Pardon?

Half of the text is erased by the forum software...please use the Markdown Cheatsheet that is linked to below the comment field ;)

The instructions are "We're starting out with a h1 element and a body element. Add a style element just above the header."