HTML —Building Cafe menu — the 5 REQUIRED <article></article> elements in STEP 31

Would someone please explain to me the logic behind this move:

WHY create 5 separate elements to list the different flavors and prices when all 5 flavors with different

Elements could have been nested inside the first AND produces the same outlook on the webpage without the extra elements. I tried it, and the menu looked the same to me, but the challenge would not accept it? I had to add the additional 4 elements to be able to move to the next step.

Please explain if in real life , this additional step or extra work is absolutely necessary.

Thank you.

Most likely for formatting reasons. You’ll need each item/price pair to be wrapped in a block element so you can later place them side by side (i.e. the item and price will be on the same line).

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