Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Alicia Williams
Alicia Williams
167 Points

I cannot remember the next step :(

I need help

index.html
<h1>

<style>
   {
  }
  </style>

<h1>Alicia Williams</h1>
Felix Reyes
Felix Reyes
4,838 Points

Please remove the <h1> which is above the <style> tag. That should get you to complete the challenge. The reason why you're code is not checking out is because that <h1> tag is not being being closed properly with the corresponding </h1> tag.

2 Answers

It seems for some reason you left an open <h1> tag at the top of the file that is not used... HTML is thinking that you are going to close it at some moment but you never did in your program. Since HTML is very friendly on not giving errors, it just doesn't display anything, and that's why the challenge isn't passing. Remove the top line of code :smile:

On the other hand, I noticed that your CSS is also invalid. Where did you say you are going to select the h1 in the CSS? You just left out opening and closing curly braces.

Your css should be like this:

h1 {

}

As you see, I'm selecting the h1 by typing it out before the first {.

I hope this helps. ~Alex

Alicia Williams
Alicia Williams
167 Points

Thank you both ! I really appreciate it ?