HTML has a special element for creating <code>unordered lists</code>, or bullet point style lists.
Unordered lists start with an opening <code><ul></code> element, followed by any number of <code><li></code> elements. Finally, unordered lists close with a <code></ul></code>
testString: 'assert($("ul").length > 0, ''Create a <code>ul</code> element.'');'
- text: You should have three <code>li</code> elements within your <code>ul</code> element.
testString: 'assert($("ul li").length > 2, ''You should have three <code>li</code> elements within your <code>ul</code> element.'');'
- text: Make sure your <code>ul</code> element has a closing tag.
testString: 'assert(code.match(/<\/ul>/gi) && code.match(/<ul/gi)&&code.match(/<\/ul>/gi).length === code.match(/<ul/gi).length,''Makesureyour<code>ul</code> element has a closing tag.'');'
- text: Make sure your <code>li</code> elements have closing tags.
testString: 'assert(code.match(/<\/li>/gi) && code.match(/<li[\s>]/gi) && code.match(/<\/li>/gi).length === code.match(/<li[\s>]/gi).length, ''Make sure your <code>li</code> elements have closing tags.'');'
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>