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 trialnitin valvi
244 Pointsdon't understand
don't understand
<style>
h1 {
color:green;
}
<h1> nitin valvi </h1>
</style>
2 Answers
Ronav Saundh
8,070 PointsHi, This is just a small error. You have put your H1 tags inside the style tags which are meant for css. Try something like this:
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
color:green;
}
</style>
</head>
<body>
<h1> Nitin Valvi </h1>
</body>
</html>
I hope this works for you. Cheers
Bryce Santos
11,157 PointsYou have your h1 tags in the style tags. Try this instead:
<head>
<style>
h1 {
color:green;
}
</style>
</head>
<h1> nitin valvi </h1>
edit: style tags need to go inside head tags, d'oh!
Ronav Saundh
8,070 PointsHi,
Bryce Santos. I think you forgot to put the body tags around your H1 tags and then close the page with </html>
:)
Cheers.
Bryce Santos
11,157 PointsYeah, I should have written out the code completely and correctly when I edited the post. Your post works better :D