Build a Recipe Page - Build a Recipe Page

Tell us what’s happening:

i have 7 li element and why it kept saying "you should have atleast 4 ?

Ingredients

  • Plain / all purpose flour
  • Eggs
  • Baking powder
  • Milk
  • Sugar
  • Oil
  • Vanilla extract

Your code so far

<!DOCTYPE html>
<html lang="en" >
  <head>
    <meta charset="UTF-8">
    <title>Cake recipe</title>
  </head>
  <body>
    <h1>Classic Vanilla Cake</h1>
    <p>Light, fluffy, and melt-in-your-mouth delicious — the kind of cake that makes every day feel like a celebration.</p>
    <h2>Ingredients</h2>
    <ul>
  <li>Plain / all purpose flour</li>
  <li>Eggs</li>
  <li>Baking powder</li>
  <li>Milk</li>
  <li>Sugar</li>
  <li>Oil</li>
  <li>Vanilla extract</li>
</ul>
    <h2>Instructions</h2>
    <ul>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </body>
  </html>

Your browser information:

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

Challenge Information:

Build a Recipe Page - Build a Recipe Page

these have no content and it’s tripping the tests

1 Like

wdym?i’m talking about the first h2 element

I am telling you what is causing the test failure, those empty li inside an ul is making the test that is checking for a ul with inside li fail, because it is checking for content inside those li

you may want to double check what you should do with the second list

i’ve changed my second h2 and it said like this eventhough i’ve ul and li under instructions

7. You should have an ordered list element below your second h2 element.

Instructions

  • Preheat the oven to 350°F (175°C).
  • Mix flour, baking powder, and sugar in a bowl.
  • Add eggs, milk, oil, and vanilla extract; whisk until smooth.
  • Pour batter into a greased pan and bake for 30–35 minutes.

these are the key words

do you have an ordered list?

2 Likes

oh,i see!i’m using the unordered list,but the solution is ordered list :smiling_face_with_tear: tysm

2 Likes