Attribute of radio and button

what is istake in this code y i cant run them??

  **Your code so far**

<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 id="indoor" value="indoor" type="radio" name="indoor-outdoor" > Indoor
    <input id="outdoor" value="outdoor" type="radio" name="indoor-outdoor" > Outdoor </label><br>
  <label><input type="checkbox" name="personality" value="loving"> Loving
  <label><input type="checkbox" name="personality" value="lazy"> Lazy 
   <label><input type="checkbox"value="Energetic" name="personality"> energetic 
     <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/90.0.4430.212 Safari/537.36

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:

Two things:

  • Click “Reset All Code” to start over fresh. Do not modify any of the existing code (you changed some things you shouldn’t have). Just add what the instructions are asking.
  • Case matters. For example, “Test” is not the same as “test”.
1 Like

let me try again this code

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