Camper cafe step 13

Hey! I’m trying to center the h2 and p elements for the camper cafe menu but the code is not working, I’m not sure why. I did the same thing I did for h1 element.

the prompt: In the previous step, you used a type selector to style the h1 element. Go ahead and center the h2 and p elements with a new type selector for each one.

my code:

<style>
      h1 {
        text-align: center;
      }
    </style>
   <style>
     h2 {
       text-align: center; 
     }
     </style>
     <style>
       p{
         text-align: center;
         }
       </style>

the feedback: Sorry, your code does not pass. You’re getting there.
You should add a new h2 selector.

What does a new “h2” selector mean? I’m not sure what I’m missing.

thanks!

1 Like

you shouldn’t add a new style element, instead add all three selectors to the first style element

5 Likes

Your code should be something like
h1 {
text-align: center;
}
h2 {text-align: center;
}
p {text-align: center;
}

I hope this will sort out the issue frok your side.

6 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.