First problem is that you have misunderstood the requirements.
They said to create a p element with the text Total Fat 8g 10%
and you actually create this text multiple times
(look at your code to see what I mean, there are -three- “Total Fat” and -two- “8g” and -two “10%”)
You only need to write this text -once-.
Then add the required spans around the text you just entered. (don’t make more copies of the text)
And use proper syntax. All p element need closing tags
All html tags need a < and > around them
Unfortunately i still don’t understand it, i’m very very new to this. Is there any way of seeing an example?
I’ve rewritten it without using the text more than once, but not sure how to add the
Total Fat 8g without writing the text again
Don’t add the text again. Just add the tags they said you should add. If they said add a span element for example then add that around the text you just wrote .
Just write the span opening tag on the left of the word(s) and the closing tag on the right. (Just like any other html code that you have written before)
What you have is good I think except for the last step.
So I would try to add one more span opening tag to the immediate right of the opening p tag and another closing span tag to the immediate right of the 8g.
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.