Set the ID of an Element2

This is the only challenge that has stumped me even after searching for all the possible answers. I’m adding the ID exactly as others have recommended & it’s not working. Don’t know what else to do.v

Your code so far

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
  .silver-background {
    background-color: silver;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back. " src="https://bit.ly/fcc-relaxing-cat"></a>

<div class="silver-background">
  <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">id=cat-photo-form>
  <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
  <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>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
  
</form>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (iPad; CPU OS 11_2_2 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/63.0.3239.73 Mobile/15C202 Safari/604.1.

Link to the challenge:
https://www.freecodecamp.org/challenges/set-the-id-of-an-element

Look carefully at the html tag that you added the id to. You have an error.

v

ArielLeslie thanks for the heads up. Don’t recall if 1or 2 in the pic is the html. Can u give me heads up about that? I believe it’s 1.

ArielLeslie I’m putting in the same code that other users provided in the Hints forum. It looks identical to me after reviewing numerous times.

What is your current code?

That code contains the same error as in your original post. Look carefully at the html element that you are supposed to add the id to.

In the future, please use the text formatting tools in the forum to share code instead of pasting a screenshot.

1 Like

Will do ArielLeslie. Sorry for that, still trying to get acclimated to how this fcc site works. Thank you

Thank you! Just realized my tiny error. I’ll be even more vigilant next time