Problem with the value attribute


Pls help! Idk whats wrong with my code… thats my code below

  <p>Click here to view more <a href="#">cat photos</a>.</p>
  <a href="#"><img src="" 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="/submit-cat-photo">
      <input type="radio" id="indoor" value="indoor" name="indoor-outdoor"> Indoor</label>
      <input type="radio" id="outdoor" value="outdoor" name="indoor-outdoor"> Outdoor</label><br>
    <label><input type="checkbox" name="personality" id="Loving"value="Loving"> Loving</label>

    <label><input type="checkbox" name="personality" id="Lazy" value="Lazy"> Lazy
    <label><input type="checkbox" name="personality" id="Energetic" value="Energetic"> Energetic</label><br>
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>


And thats my task to do:

Give each of the radio and checkbox inputs the value attribute. Use the input label text, in lowercase, as the value for the attribute.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

Also, it is much easier to just hit the “Get Help” button on the challenge. It will prepopulate a post on the forum, in the correct sub-forum, with your code in it.


You have not done this section. Have a read, once more.