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>
</醇>
ul
元素。
testString: 'assert.equal($("ul").length, 1, "You should have only one ul
element.");'
- text: 你应该只有一个ol
元素。
testString: 'assert.equal($("ol").length, 1, "You should have only one ol
element.");'
- text: 你的ul
元素中应该有三个li
元素。
testString: 'assert.equal($("ul li").length, 3, "You should have three li
elements within your ul
element.");'
- text: 你的ol
元素中应该有三个li
元素。
testString: 'assert.equal($("ol li").length, 3, "You should have three li
elements within your ol
element.");'
- text: 确保你的ul
元素有一个结束标记。
testString: 'assert(code.match(/<\/ul>/g) && code.match(/<\/ul>/g).length === code.match(/ul
element has a closing tag.");'
- text: 确保您的ol
元素具有结束标记。
testString: 'assert(code.match(/<\/ol>/g) && code.match(/<\/ol>/g).length === code.match(/ol
element has a closing tag.");'
- text: ''
testString: 'assert(code.match(/<\/li>/g) && code.match(/li
element has a closing tag.");'
```
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: