text-center
to our h2
element.
Remember that you can add several classes to the same element by separating each of them with a space, like this:
<h2 class="red-text text-center">your text</h2>
h2
element should be centered by applying the class text-center
testString: assert($("h2").hasClass("text-center"), 'Your h2
element should be centered by applying the class text-center
');
- text: Your h2
element should still have the class red-text
testString: assert($("h2").hasClass("red-text"), 'Your h2
element should still have the class red-text
');
```
Click here for cat photos.
Things cats love:
Top 3 things cats hate:
Click here for cat photos.
Things cats love:
Top 3 things cats hate: