Learn typography by building a nutrition label step 33

I don’t know whats wrong with my code
The instruction is:
Step 33

Below your .small-text element, create a new p element with the text Calories. Also below the .left-container element, create a new span element with the text 230.

It marks error
Test: Sorry, your code does not pass. Try again.
Hint:Your p element should have the text Calories.
Can you help me, please?

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Nutrition Label</title>
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,800" rel="stylesheet">
  <link href="./styles.css" rel="stylesheet">
</head>

<body>
  <div class="label">
    <header>
      <h1 class="bold">Nutrition Facts</h1>
      <div class="divider"></div>
      <p>8 servings per container</p>
      <p class="bold">Serving size <span>2/3 cup (55g)</span></p>
    </header>
    <div class="divider large"></div>
    <div class="calories-info">
        <h2 class="bold small-text">Amount per serving</h2>
        <p>Calories </p>
        <div class="left-container"><span>230</span>
        </div>
    </div>
  </div>
</body>
</html>

Can you be more specific about what in the instructions is confusing?

Below means after the entire element.

Thanks for answering
Where should I add the span?
And why it says
Your p element should have the text Calories.
But I write it like that: <p>Calories </p>

Below means after the corresponding closing tag.

1 Like

Thanks for your help!! I did it

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