--- id: bad87fee1348bd9aedf08828 title: Create an Ordered List challengeType: 0 videoUrl: 'https://scrimba.com/p/pVMPUv/cQ3B8TM' --- ## Description
HTML has another special element for creating ordered lists, or numbered lists. Ordered lists start with an opening <ol> element, followed by any number of <li> elements. Finally, ordered lists close with a </ol> For example:
<ol>
  <li>Garfield</li>
  <li>Sylvester</li>
</ol>
would create a numbered list of "Garfield" and "Sylvester".
## Instructions
Create an ordered list of the top 3 things cats hate the most.
## Tests
```yml tests: - text: 'You should have an ordered list for "Top 3 things cats hate:"' testString: 'assert((/Top 3 things cats hate:/i).test($("ol").prev().text()), ''You should have an ordered list for "Top 3 things cats hate:"'');' - text: 'You should have an unordered list for "Things cats love:"' testString: 'assert((/Things cats love:/i).test($("ul").prev().text()), ''You should have an unordered list for "Things cats love:"'');' - text: You should have only one ul element. testString: 'assert.equal($("ul").length, 1, ''You should have only one ul element.'');' - text: You should have only one ol element. testString: 'assert.equal($("ol").length, 1, ''You should have only one ol element.'');' - text: You should have three li elements within your ul element. testString: 'assert.equal($("ul li").length, 3, ''You should have three li elements within your ul element.'');' - text: You should have three li elements within your ol element. testString: 'assert.equal($("ol li").length, 3, ''You should have three li elements within your ol element.'');' - text: Make sure your ul element has a closing tag. testString: 'assert(code.match(/<\/ul>/g) && code.match(/<\/ul>/g).length === code.match(/
## Challenge Seed
```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:

```
## Solution
```js // solution required ```