I keep getting a "The Style attribute should be removed from the h2 element" error

What am I doing wrong? Your code so far

h2 {
  color: blue;
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>

  <p>Things cats love:</p>
    <li>cat nip</li>
    <li>laser pointers</li>
  <p>Top 3 things cats hate:</p>
    <li>flea treatment</li>
    <li>other cats</li>

<form action="https://freecatphotoapp.com/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>
  **Your browser information:**

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

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:

Hello @RRICCl,

It doesn’t work because of the way you wrote the style tag

h2 {
  color: blue;

Look the difference between the STYLE and /style. You cannot write DIV and /div for example. Hope you understand what I mean

I do understand but I didn’t think case mattered

Yes, the case matter, and it makes two different tags at the end. I don’t know if it is still the case, but in HTML I already saw things like P /P, but it is not a clean way to write in all the case. Lowercase for the tags is the proper way to write

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.