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

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

#1

Tell us what’s happening:

Your code so far

<style>
  h2 .red-text {
    color: red;
  }
</style>

<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:


#2

<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:

h2.red-text {

#3

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


#4

You’re welcome :smiley:

I’m glad I could help you!