Glitch in the system

Tell us what’s happening:

Seems to me my code is correct, but am getting the same error, saying I need to make the element blue. Don’t know what I’m missing, and would be grateful for the help. Can’t move on.

Your code so far


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

<main>

  <p>Click here to view more <a href="#">cat photos</a>.</p>
  
  <a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
  
  <div>
    <p>Things cats love:</p>
    <ul>
      <li>cat nip</li>
      <li>laser pointers</li>
      <li>lasagna</li>
    </ul>
    <p>Top 3 things cats hate:</p>
    <ol>
      <li>flea treatment</li>
      <li>thunder</li>
      <li>other cats</li>
    </ol>
  </div>
  
  <form action="/submit-cat-photo">
    <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
    <label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
    <label><input type="checkbox" name="personality" checked> Loving</label>
    <label><input type="checkbox" name="personality"> Lazy</label>
    <label><input type="checkbox" name="personality"> Energetic</label><br>
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>
  </form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/use-css-selectors-to-style-elements

Hi there @vandring.

The code you provided doesn’t appear to have a h2 element anywhere in it, so the CSS rule set of

h2 {
  color: blue;
}

Is not actually applied to anything, as there is no h2 present in your code.

Hope this helps!

Kyle - thanks much. My code was right, but I accidentally erased the h2 element I was styling. Appreciate your help.

V

1 Like

No problem at all! I know how frustrating or confusing it can be sometimes when you get stuck, but 99% of the time I find it’s a simple error or easy fix! (Story of my life lol.)

Keep up the good work man

1 Like

Kyle I am also stuck with simple error need your help kindly solve it .

Your p element should contain the first few words of the provided additional kitty ipsum text .

Hi @Sayed-Mohammadshah30.
It will be much easier for me to help if you link the challenge you are on, and also show your code so I know what’s going on, as @vandring did above!

here u go with screenshots

@Sayed-Mohammadshah30 I need to know what challenge it is also, a link should be fine.

EDIT: I suggest you reset the code for that challenge, and focus on this description here…
solution

Thank Kyle-S I got it!

1 Like