Learn Basic CSS by Building a Cafe Menu - Step 12

Tell us what’s happening:
It keeps saying I’m changing the h1 element even though I’m not and then its saying I’m adding a second style element when I also have not.

Your code so far

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
      h1 {
        text-align: center;
      h2 {
        text-align: center;
      p {
        text-align: center
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>

Your browser information:

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

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

Link to the challenge:

Your solution works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.


Welcome to the forums! Computers are very picky. Take a look at the value for your text align property of the “p” selector. See if there’s anything you notice missing that is in your other property values.

oops. When i was typing you hadnt responded. Sorry.

no worries. the semi-colon is not required if the property is just before the closing brace

1 Like

Well that’s good to know!

1 Like

i just learned it last month myself.

Thank you it worked after i removed the extensions

1 Like

I got this problem with me, and I also tried these solutions and it didn’t work. Is there another solution?

If you have a question about a specific challenge as it relates to your written code for that challenge, and you’ve tried to solve it at least 3 times so far and still need some help, just click the Ask for Help button located on the challenge (it looks like a question mark).
This button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.