Role playing game step 17

Step 17

Wrap the numbers 0, 100, and 50 in span elements, and wrap those new span elements in strong elements. Then give your new span elements id values of xpText, healthText, and goldText, respectively.

XP: 0
Health: 100
Gold: 50

console: Your first new strong element should have a span element.
Any one could help?

Hi! Here is a template to help you understand the tag structure:

<span class="name">Text: <strong><span id="value">Number</span></strong></span>

And make sure you don’t forget one space after the Text.

Also you can rearrange this line into more readable structure to see the nesting more clearly:

<span class="name">Text: 
  <strong>
    <span id="value">Number</span>
  </strong>
</span>
1 Like

Thank you! I figured out

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