Be Brav3

FCC Challenge 8: Change the Color of Text

March 06, 2016

FCC Challenge 8 requires us to change the color of h2 element to red:

[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 updated 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]

Now let’s change the color of some of our text.

We can do this by changing the style of your h2 element.

The style that is responsible for the color of an element’s text is the “color” style.

Here’s how you would set your h2 element’s text color to blue:

[html]

CatPhotoApp

[/html]

Change your h2 element’s style so that its text color is red.