Learn Basic CSS by Building a Cafe Menu - Step 12

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
  <style> 
  <h1> {
    text-align: center;
  }CAMPER CAFE</h1>
  </style>
</head>
<body>
  <header>
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
  </header>
  <main>
    <section>
      <h2>Coffee</h2>
    </section>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36 Edg/104.0.1293.70

Challenge: Learn Basic CSS by Building a Cafe Menu - Step 12

Link to the challenge:

Hello there.

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

@noble_239 you made CSS syntax error so share a link so you can learn about css syntax

CSS MDN : What is CSS? - Learn web development | MDN

Look back at the example from the instructions

You can add style to an element by specifying it in the style element and setting a property for it like this:

element {
 property: value;
}

The element there is the name of the element you want to style, like p, a, and so on. You shouldn’t put HTML tags around the CSS rule.

this is code that i have written in 13th step which tells us to do

(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. )
According to this, i have written this:-

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

but in my cooding the error shows

(You should add a new h2 selector.)

have you understood? i want to where i am wrong !this is my problem where i got stuck.

Are you asking about step 13?

It’s easier if you have separate topics for separate steps.

yes i am talkin about step no. 13 . i got stuck in step 13
of Cafe Menu.

Please create a new topic for Step 13 using the Ask For Help button