Tribute Page Help!.!

Whenever I add CSS styling to my h1 element it does not work. This is how it is formatted in CSS```

h1 { text-align: center; } !

Here is how my code looks --> Screenshot (17)|690x388

And this is how I have it written in HTML `<h1> Hello World </h1>`
I have no idea why it is not applying. Please help! I also noticed that when I add a second  class it works, but it does not work for the very first element I add under the style tag of CSS.

You dont need style tag there. Start typing your CSS code without using tag.

h1 {
color: green;

Hi Tony, thanks for the help. Why is it that the style tag is not needed in this case?

because CodePen put it in the background, you just need to write css in the CSS box

1 Like