freeCodeCamp Challenge Guide: Nest Many Elements within a Single div Element

Nest Many Elements within a Single div Element


Problem Explanation

Using a generic purpose tag as div to wrap multiple elements allows the developer to apply a common style to each of the wrapped element, to group elements with the same meaning, to create different layout ‘pack’ and so on.

About this challenge you have to group the lists already present in the code: you can use the opening div tag just before the paragraph used as header of the unordered list and put the closing tag right below the ordered one.

Good luck!

5 Likes

I don’t understand. What’s the difference when we don’t use the ‘div’ element?

14 Likes