Building a balance sheet step 13 how do I wrap an element's text with another element

how one element wrap another element’s text

Hello!

So basically around the words which is in the element you add another element.Like how you make a anchor element.
<p>Hello there! Welcome to <a href="https://freecodecamp.org/">freeCodeCamp</a>!</p>
You can do it with many other elements as well.
Example:
<div>I <strong>love </strong>cats</div>
<p>Serving size <span>2/3 cups <span>55 gram</span></span></p>

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.


Wrapping the text simpely means putting it inside the element.

For example, wrapping “John Doe” inside a span element.

<p>Name: John Doe</p>
<p>Name: <span class="name">John Doe</span></p>

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