Click here to view more cat photos.
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
ordered lists
или нумерованных списков. Упорядоченные списки начинаются с элемента <ol>
, за которым следует любое количество элементов <li>
. Наконец, упорядоченные списки закрываются с помощью </ol>
Например: <ol>создаст нумерованный список «Гарфилд» и «Сильвестр».
<Li> Гарфилд </ li>
<Li> Сильвестр </ li>
</ ol>
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(/ol
element has a closing tag.
testString: assert(code.match(/<\/ol>/g) && code.match(/<\/ol>/g).length === code.match(/li
element has a closing tag.
testString: assert(code.match(/<\/li>/g) && code.match(/li
elements in your unordered list should not be empty.
testString: $('ul li').each((i, val) => assert(val.textContent.replace(/\s/g, '')));
- text: The li
elements in your ordered list should not be empty.
testString: $('ol li').each((i, val) => assert(!!val.textContent.replace(/\s/g, '')));
```
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate:
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: