That illustrates the difference between an "inline" element and a "block" element.
By using the inline <code>span</code> element, you can put several elements on the same line, and even style different parts of the same line differently.
Nest the word "love" in your "Things cats love" element below within a <code>span</code> element. Then give that <code>span</code> the class <code>text-danger</code> to make the text red.
Here's how you would do this with the "Top 3 things cats hate" element:
<code><p>Top 3 things cats <span class="text-danger">hate:</span></p></code>
- text: Your <code>span</code> element should be inside your <code>p</code> element.
testString: 'assert($("p span") && $("p span").length > 0, ''Your <code>span</code> element should be inside your <code>p</code> element.'');'
- text: Your <code>span</code> element should have just the text <code>love</code>.
testString: 'assert($("p span") && $("p span").text().match(/love/i) && !$("p span").text().match(/Things cats/i), ''Your <code>span</code> element should have just the text <code>love</code>.'');'
- text: Your <code>span</code> element should have class <code>text-danger</code>.
testString: 'assert($("span").hasClass("text-danger"), ''Your <code>span</code> element should have class <code>text-danger</code>.'');'
- text: Make sure your <code>span</code> element has a closing tag.
testString: 'assert(code.match(/<\/span>/g) && code.match(/<span/g)&&code.match(/<\/span>/g).length === code.match(/<span/g).length,''Makesureyour<code>span</code> element has a closing tag.'');'