Learn Basic CSS by Building a Cafe Menu - Step 31

Each article should have two p elements. I started with 2 then I added two more it still doesn’t work. Please help.

Your code so far

/* file: index.Ext.html */
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Cafe Menu</title>
    <link href="styles.css" rel="stylesheet"/>
  </head>
  <body>
    <div class="menu">
      <main>
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
        <section>
          <h2>Coffee</h2>
            <p><p><article></p></p>
            <p>French Vanilla</p>
            <p><p></article></p></p>
            <p>3.00</p>
            <p><p><article></p></p>
            <p>Caramel Macchiato</p>
            <p><p></article></p></p>
            <p>3.75</p>
            <p><p><article></p></p>
            <p>Pumpkin Spice</p>
            <p><p></article></p></p>
            <p>3.50</p>
            <p><p><article></p></p>
            <p>Hazelnut</p>
            <p><p></article></p></p>
            <p>4.00</p>
            <p><p><article></p></p>
            <p>Mocha</p>
            <p><p></article></p></p>
            <p>4.50</p> 
        </section> 
      </main>
    </div>
  </body>
</html>
/* file: styles.Ext.css */
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Cafe Menu</title>
    <link href="styles.css" rel="stylesheet"/>
  </head>
  <body>
    <div class="menu">
      <main>
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
        <section>
          <h2>Coffee</h2>
            <p><p><article></p></p>
            <p>French Vanilla</p>
            <p><p></article></p></p>
            <p>3.00</p>
            <p><p><article></p></p>
            <p>Caramel Macchiato</p>
            <p><p></article></p></p>
            <p>3.75</p>
            <p><p><article></p></p>
            <p>Pumpkin Spice</p>
            <p><p></article></p></p>
            <p>3.50</p>
            <p><p><article></p></p>
            <p>Hazelnut</p>
            <p><p></article></p></p>
            <p>4.00</p>
            <p><p><article></p></p>
            <p>Mocha</p>
            <p><p></article></p></p>
            <p>4.50</p> 
        </section> 
      </main>
    </div>
  </body>
</html>

Your mobile information:

iPhone - iOS17.1.1

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

Link to the challenge:

Hey @Silentg393 !
Your code is kind of messed up. I would recommend you reset the lesson and then have two paragraph elements nested in an article element.

<article>
paragraph 1
paragraph 2
</article>
2 Likes

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