--- id: bad87fee1348bd9aedf08828 title: Create an Ordered List challengeType: 0 videoUrl: https://scrimba.com/p/pVMPUv/cQ3B8TM forumTopicId: 16824 localeTitle: Создание упорядоченного списка --- ## Description
HTML имеет еще один специальный элемент для создания ordered lists или нумерованных списков. Упорядоченные списки начинаются с элемента <ol> , за которым следует любое количество элементов <li>. Наконец, упорядоченные списки закрываются с помощью </ol> Например:
<ol>
<Li> Гарфилд </ li>
<Li> Сильвестр </ li>
</ ol>
создаст нумерованный список «Гарфилд» и «Сильвестр».
## Instructions
Создайте упорядоченный список из 3 лучших вещей, которые кошки ненавидят больше всего.
## 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
```