Click here to view more cat photos.
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
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
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: