Learn Basic CSS by Building a Cafe Menu - Step 14

Hi, I have an issue with this code and I could really use the help. I’m supposed to style the html file using a separate file and was told to rewrite the same code on the separate CSS file which is “h1, h2, p {
text-align: center;
}”. I did do so but I still can’t go to the next task, the hint is “Your styles.css file should have the h1, h2, p type selector.” I’ve already tried coding the selectors separately and even added a link to the html file. Please help🙏

Your code so far

/* file: index.Ext.html */

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
      <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>




/* file: styles.Ext.css */

h1, h2, p {
    text-align: center;
}

Your mobile information:

JNY-LX1 - Android 10 - Android SDK 29

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

Link to the challenge:

Hi there and welcome to our community!

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.

On a side note, whilst you’re correct that you’ll need to remove the style element from the HTML doc and add a link to the external CSS, you’re walked through this in the next couple of steps, so don’t need to do that now. (Regardless, your code should pass as is anyway).