Click here to view more cat photos.
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
- flea treatment
- thunder
- other cats
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 <div> and close it on another line with </div>.
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.
p elements inside your div element.
testString: 'assert($("div").children("p").length > 1, "Nest your p elements inside your div element.");'
- text: Nest your ul element inside your div element.
testString: 'assert($("div").children("ul").length > 0, "Nest your ul element inside your div element.");'
- text: Nest your ol element inside your div element.
testString: 'assert($("div").children("ol").length > 0, "Nest your ol element inside your div element.");'
- text: Make sure your div element has a closing tag.
testString: 'assert(code.match(/<\/div>/g) && code.match(/<\/div>/g).length === code.match(/div element has a closing tag.");'
```
## Challenge Seed
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: