my code under learning typography by building a nutrition label (step 54) is correct but the ai is saying my code is incorrect. i have checked for errors in spellings and yet everything seems ok… i dont know why their code checker is telling me my code isnt correct. even the output says it is correct.
It would probably help if we could see your code so we could test for ourselves
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.
<p><span><span class="bold">sodium</span>160mg</span> <span class="bold">7%</span></p>
Below your last p
element, create another p
element with the text Sodium 160mg 7%
. Wrap the text Sodium
in a span
element with a class
attribute set to bold
. Wrap the 7%
text in another span
element with the class
set to bold
. Also add an additional span
element around Sodium 160mg
for aligning it correctly.
Test
Sorry, your code does not pass. Keep trying.
Hint
Your new p
element should have the text Sodium 160mg 7%
.
sodium
is not the same as Sodium
.
You still need a space between Sodium
and 160mg
.
please write out the code yourself let me paste it and see
We don’t write code for you. If you try again and it doesn’t work, show us and we can help some more.