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

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

Yusfu Daramay
Yusfu Daramay
166 Points

Need help with h1 tag

It says to make sure I'm in the h1 tag but I don't really know what that means. I indented every line but don't know what I am doing wrong.

index.html
<style></style>
h1
{
  color:blue;
}
<h1>Nick Pettit</h1>
Claudio Vendrame
Claudio Vendrame
4,964 Points

Put the css code between the Style tags. <style> h1 { color:blue; } </style>

2 Answers

Matthew Tran
Matthew Tran
16,343 Points

You need to close out your style tag by moving the first </style> at the end of line 1, to below line 5, but before the actual h1 header.

Hi Yusfu, the code should look like this:

<style>

h1 {
  color: blue;
}

</style>

<h1>Yusfu Daramay</h1>
Yusfu Daramay
Yusfu Daramay
166 Points

Thank you so much! wow I can't believe the willingness of help on this website. So greatful and thank you