Use a CSS Class to Style an Element Can you help me, please?

Tell us what’s happening:

Your code so far

  h2 .red-text {
    color: red;

<h2 class-"red-text">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>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36.

Link to the challenge:

<h2 class="red-text">CatPhotoApp</h2>

instead of

<h2 class-"red-text">CatPhotoApp</h2>

edit: also, there is no space between the h2 and the dot that signifies the class.
So, this:

h2 .red-text {

becomes this: {

Thank you! I’ve been trying to figure out what I did wrong for a while now

You’re welcome :smiley:

I’m glad I could help you!

1 Like