--- id: bad87fee1348bd9aedf08828 title: Create an Ordered List challengeType: 0 videoUrl: '' localeTitle: Crear una lista ordenada --- ## Description
HTML tiene otro elemento especial para crear ordered lists o listas numeradas. Las listas ordenadas comienzan con un elemento <ol> apertura, seguido de cualquier número de elementos <li> . Finalmente, las listas ordenadas se cierran con </ol> Por ejemplo:
<ol>
<li> Garfield </li>
<li> Sylvester </li>
</ol>
crearía una lista numerada de "Garfield" y "Sylvester".
## Instructions
Crea una lista ordenada de las 3 cosas principales que los gatos odian más.
## Tests
```yml tests: - text: 'Deberías tener una lista ordenada para "3 cosas que odian los gatos:"' 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: 'Deberías tener una lista desordenada para "Cosas que los gatos aman:"' testString: 'assert((/Things cats love:/i).test($("ul").prev().text()), "You should have an unordered list for "Things cats love:"");' - text: Deberías tener solo un elemento ul . testString: 'assert.equal($("ul").length, 1, "You should have only one ul element.");' - text: Debes tener un solo elemento ol . testString: 'assert.equal($("ol").length, 1, "You should have only one ol element.");' - text: Debes tener tres elementos li dentro de tu elemento ul . testString: 'assert.equal($("ul li").length, 3, "You should have three li elements within your ul element.");' - text: Debes tener tres elementos li dentro de tu elemento ol . testString: 'assert.equal($("ol li").length, 3, "You should have three li elements within your ol element.");' - text: Asegúrese de que su elemento ul tenga una etiqueta de cierre. 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 ```