Don’t include spaces between the text and the span tags. For example, there should be no space between the word Fat and the closing span tag.
You weren’t ask to just wrap 8g in a span. You were asked to wrap Total Fat 8g in a span. This would also include any spans already wrapping those words, such as the span around Total Fat.
Just reduce the space so that there is exactly one between the words.
And move the 8g span opening tag so it goes to an appropriate spot on the left of the word Total.
Please paste your updated HTML in here so we can see what you have tried. To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.
They are asking for three span and doing that will not give me three span
For example: <p><span class="bold">Total Fat</span><span>8g</span><span class="bold">10%</span></p>
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.