It said you should have an h1 selector in your style element.Pls help

type or paste code here
<style>
     <h1> {
      text-align: center;
    }</h1>
    </style>

try it like this:

selector { 
property: value;
} 

css doesn’t require opening/closing tags like you have done for your “h1” element. :slight_smile:

1 Like

You try code below:

Mod edit: removed solution

1 Like

thanks guys it worked