I am on the 13th lesson where I am learning to “Use a CSS Class to Style an Element”, but it keeps saying “Your h2 element should have the class red-text.” as something I am not doing.
This is the code written so far…
<style>
h2 {
color: red;
}
<h2 class="red-text">CatPhotoApp</h2>
.red-text {
color: red;
}
</style>
<h2>CatPhotoApp</h2>
<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>
Would appreciate any help.