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

I'm not sure what I'm doing wrong. Will someone help me? It is asking me to "Add a <style> element just above the <h1>."

Exactly as the title suggests, I can't seem to figure out this simple Code Challenge. I am doing what I think is exactly what it is asking me to do, which is to add a <style> above the <h1>.

<body> <style> <h1>Dakota<h1> <body>

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

2 Answers

You may just be missing the / when you close the script tag? Looks like that's missing in the code you pasted <script></script>

This was it! Thank you very much.

lmh .
lmh .
7,213 Points

Try adding the style for h1 inside the "style" tag. I think the challenge requires that the color is set to green. Hope it works!

<head>
<style>
    h1 { color:green }
</style>
</head>

<body>
    <h1>Text for the heading</h1>
</body>

Does that go inside the <body> tags?