--- id: bad87fee1348bd9aedf08828 title: Create an Ordered List challengeType: 0 videoUrl: 'https://scrimba.com/p/pVMPUv/cQ3B8TM' forumTopicId: 16824 --- ## 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 are closed with the </ol> tag. For example: ```html
  1. Garfield
  2. Sylvester
``` 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())); - text: You should have an unordered list for "Things cats love:" testString: assert((/Things cats love:/i).test($("ul").prev().text())); - text: You should have only one ul element. testString: assert.equal($("ul").length, 1); - text: You should have only one ol element. testString: assert.equal($("ol").length, 1); - text: You should have three li elements within your ul element. testString: assert.equal($("ul li").length, 3); - text: You should have three li elements within your ol element. testString: assert.equal($("ol li").length, 3); - 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
```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. hate 1
  2. hate 2
  3. hate 3
```