Learn Typography by Building a Nutrition Label - Step 43

Please can someone help me with this code, i am trying to add span tag to the TOTAL FAT and it keeps telling me this… Sorry, your code does not pass. Keep trying.

One span element should wrap the text Total Fat

  <p><span class="bold">Total Fat</span> <span class="bold">8g</span> <span class="bold">10%</span></p>
</div>

You should consider these instructions.

Finally, nest the Total Fat span element and the text 8g in an additional span element for alignment.

8g should not be nested in its own span.

1 Like

when i do this…<p><span class="bold">Total Fat 8g</span> <span class="bold">10%</span></p>

it tells me this… Your p element should have three span elements

1 Like
<p><span class="bold">Total Fat</span> <span class="bold">8g</span> <span class="bold">10%</span></p>
</div>

Remove the span opening tag with class bold from 8g text, and add a span opening tag without any class after p opening tag. With above position of code.
@veetor114

2 Likes

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