Radio button elements should be added within the form tag

Tell us what’s happening:

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">
  <label><input type="radio" name="indoor-outdoor">Indoor</label>
  <label><input type="radio" name="indoor-outdoor">Outdoor</label><br>
  <label><input type="checkbox" name="personality">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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36.

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:

1 Like

what it tells you to do is give them a value. Where is your value attribute?

plz elaborate it i cant understand

it’s in the lesson read down
“’’ Give each of the radio and checkbox inputs the value attribute. Use the input label text, in lowercase, as the value for the attribute.”

plz elaborate it I cant understand it

why can’t you understand it? what part are you failing to understand excatly?

ooohhhhh yes thanks …

 the problem was more than obvious, I needed to move  </form>  after the second radio bottom and before  </main>.

that is it hahaha

wow, also you make the code shorter than on video and it still passes the check, I like a new thing I notice in your open tag  <br>  it was something new for me.```