Step 24 typography

this one is giving me trouble. It is asking me to… “Wrap everything within the .label element in a new header element.” . I’m not sure, do I use an

element somewhere in there. below is the code it would like me to change. any help would be great! Thanks!

  <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>

</div>

HI @ControlEnter,

In the challenge, you are asked to take everything inside the div with the class=label and put it within a new element header.

The new header element and its content will still be within the div with the class label.

thanks, so would I use an h2 element to wrap around? I can’t seem to place them in the right spot. it keeps saying I need to “create a new header element”

thanks again!

No you need to use a header element :

<header> ... </header>

The <header> HTML element represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements.

Thanks so much!!! makes sense now!

1 Like

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