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 trialdakotadunsford
164 PointsI'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>
<body>
<style>
<style>
<h1>Nick Pettit</h1>
</body>
2 Answers
edharris
479 PointsYou may just be missing the / when you close the script tag? Looks like that's missing in the code you pasted <script></script>
lmh .
7,213 PointsTry 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>
dakotadunsford
164 PointsDoes that go inside the <body> tags?
dakotadunsford
164 Pointsdakotadunsford
164 PointsThis was it! Thank you very much.