Be Brav3

FCC Challenge 11: Style Multiple Elements with a CSS Class

March 06, 2016

In FCC Challenge 11 we need to apply the red-text class to the h2 and p elements:

[html]

CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

[/html]

The modified code should look like:

[html]

CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

[/html]

Remember that you can attach classes to HTML elements by using class=”your-class-here” within the relevant element’s opening tag.

Remember that CSS class selectors require a period at the beginning like this:

[html]

.blue-text {

color: blue;

}

[/html]

But also remember that class declarations don’t use a period, like this:

[html]

CatPhotoApp

[/html]

Apply the red-text class to your h2 and p elements.