Attribute of radio and button

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

<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>
<form action="/submit-cat-photo">

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