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 trialSatbir Singh
1,674 PointsBummer! Don't forget your style tag
I think my coding is quite right... but why this error is still here
<!DOCTYPE html>
<html>
<head>
<title>My first day at Treehouse</title>
<style>
h1 {color:blue}
</style>
</head>
<body>
<h1>Nick Pettit</h1>
</body>
</html>
5 Answers
Rich Bagley
25,869 PointsHi Satbir,
The challenge is only asking for you to add the style within the body
tags:
We're starting out with an <h1> element and a <body> element. Add a <style> element just above the <h1>.
It also asks for the color to be 'green' rather than 'blue':
Nice! Finally, set the color of the h1 element to green.
So if you move the style tags inside the body tags just above the h1 and remove any other code that should sort it.
Hope that helps.
-Rich
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 Pointsh1 {color:blue;} notice the semicolon
Satbir Singh
1,674 Pointsthe error is still there
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 Points<style type="text/css">
h1 {color:blue;}
</style>
Sorry didn't write this before. Been a bit busy @ work and just replied quickly:D
Satbir Singh
1,674 Pointsthanks Rich
Rich Bagley
25,869 PointsNo problem. Happy to help :)