I think q53 in the nutrition label is bugged

<!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 class="right">2/3 cup (55g)</span></p>
      </header>
      <div class="divider lg"></div>
      <div class="calories-info">
        <p class="bold sm-text">Amount per serving</p>
        <h1>Calories <span class="right">230</span></h1>
      </div>
      <div class="divider md"></div>
      <div class="daily-value sm-text">
        
        <p class="right bold no-divider">% Daily Value *</p>
        <div class="divider"></div>
        <p><span class="bold">Total Fat</span> 8g<span class="bold right">10%</span></p>
        <p class="indent no-divider">Saturated Fat 1g <span class="bold right">5%</span></p>
        <div class="divider"></div>
        <p class="indent no-divider"><i>Trans</i> Fat 0g</p>
        <div class="divider"></div>
       <p><span><span class="bold">Cholesterol</span> 0mg</span> <span class="bold">0%</span></p>
      
        
        
      </div>
    </div>
  </body>
</html>

There’s the code, and here is the error message I am getting:
You should create a new p element at the end of your .daily-value element.

please post a link to the challenge so we can try your code ourselves.

Here you go -

Learn Typography by Building a Nutrition Label: Step 53 | freeCodeCamp.org

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like

This code is correct but the rest of the code is old. I believe the step was recently updated so the best thing to do is to reset the step then force your browser to refresh with the CTRL-F5 keys pressed together after which you can paste this line of code into place and it should work this time.

Tried it and I am still getting the same error.

It worked now.

Thanks alot for the help.

1 Like

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