Use CSS Selectors to Style Elements help

Use CSS Selectors to Style Elements help
0

#1

Tell us what’s happening:

Your code so far

<style>h2 {color: blue;}</style>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 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0.

Link to the challenge:


#2

Hi. What is your question?
And you missed h2 open tag in your code.


#3

im not sure on what im doing wrong with this section


#4

ah think you i got it so to make sure i understand i would start the code with the main tag do my css after but i dont have to end with the closing tag of the h2?


#5

Your code is

<style>
h2 {color: blue;}
</style>

CatPhotoAp`</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>

But you have not onep tag h2 and CSS not applicable to <h2>


#6

thank you i understand


#7

Nice to see your work. Keep coding.
Best rigards.


#8

Dear, I do this action, but I can finish step 3rd to have the color “blue”. Please Help me.

  1. <!--
  2. CatPhotoApp

  3. –>
  4. h2 {color: blue;}CatPhotoApp
  5. Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.


#9

Hi. You need open and close h2 tag because h2 is pair tag.
Pair tag include content inside.

Example:

<p>Content of p tag</p>

But you have not any tags outside the text. Your content is ‘‘CatPhotoApp’’.