A bug found in Responsive Web Design (Learn Typography by Building a Nutrition Label)

on challenge number 54 when u enter <span><span class="bold">Cholesterol </span>0mg</span><span class="bold">0%</span>, it returns an error. However, <span><span class="bold">Cholesterol </span>0mg</span> <span class="bold">0%</span> doesn’t (the only difference is a space between last two spans).

the space is required by the step so it is not a bug?

1 Like

The spacing in fCC is very particular

why then the course doesn’t specify how we should put spaces between elements? I spent plenty of time to figure it out on my own and move on to the next step.
And btw I asked chatgpt if space between spans is required before posting it here, though, i guess ai was wrong.

1 Like

If you reread the question you will see that a space was requested between each word.

create a new p element with the text Cholesterol 0mg 0%

Yes the AI was wrong in this case.

1 Like

See the difference below.

Without correct/spacing code preview looks like:
Cholesterol 0mg0%

And with correct spacing looks like:

Cholesterol 0mg 0%

Suppose If you write a sentence, how should you write it?

1 Like