CSS language adivice

CSS language adivice
0

#1

Tell us what’s happening:
what exactly is a CSS style?

Your code so far

<style>
  h2 .blue-text {
    color: blue;
  }
</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>

Your browser information:

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

Link to the challenge:


#2

@meron32,
you have created a CSS style rule for an html element, h2 with the class .blue-text.
The problem is, you don’t have any html element that fits that CSS rule. All you have in your webpage is an h2 element, but it does not have the class of blue-text.

Moreover, you do not have the write the type of the element when using classes, so you can just write:

.blue-text {
     color:blue;
}

Don’t forget to apply it to the element of your choice.