--- id: bad87fee1348bd9aede08835 title: Nest Many Elements within a Single div Element challengeType: 0 videoUrl: 'https://scrimba.com/p/pVMPUv/cNW4kC3' forumTopicId: 18246 dashedName: nest-many-elements-within-a-single-div-element --- # --description-- The `div` element, also known as a division element, is a general purpose container for other elements. The `div` element is probably the most commonly used HTML element of all. Just like any other non-self-closing element, you can open a `div` element with `
` and close it on another line with `
`. # --instructions-- Nest your "Things cats love" and "Top 3 things cats hate" lists all within a single `div` element. Hint: Try putting your opening `div` tag above your "Things cats love" `p` element and your closing `div` tag after your closing `ol` tag so that both of your lists are within one `div`. # --hints-- Your `p` elements should be nested inside your `div` element. ```js assert($('div').children('p').length > 1); ``` Your `ul` element should be nested inside your `div` element. ```js assert($('div').children('ul').length > 0); ``` Your `ol` element should be nested inside your `div` element. ```js assert($('div').children('ol').length > 0); ``` Your `div` element should have a closing tag. ```js assert( code.match(/<\/div>/g) && code.match(/<\/div>/g).length === code.match(/
/g).length ); ``` # --seed-- ## --seed-contents-- ```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


``` # --solutions-- ```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


```