Where is the value attribute in the code?/

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="https://bit.ly/fcc-relaxing-cat" 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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36.

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:

Hello @vjk_007

I’m a little puzzled by your wording, but if you mean where is the value attribute supposed to be, that would be the input elements of type radio and checkbox.

The description introducing the challenge should bring you up to speed with its place and purpose :+1:

what does the value attribute does in output???

It’s a way to identify the option selected in the form.

The last part of the description describes this in detail:

If you omit the value attribute, the submitted form data uses the default value, which is on . In this scenario, if the user clicked the “indoor” option and submitted the form, the resulting form data would be indoor-outdoor=on , which is not useful. So the value attribute needs to be set to something to identify the option.

thank you borntofrappe