Question about Basic HTML and HTML5 24

My question is not related to the completion of the exercise.

In this exercise is depicted a scenario in witch the form has no value attribute:

<label for="indoor"> 
  <input id="indoor" type="radio" name="indoor-outdoor">Indoor 
<label for="outdoor"> 
  <input id="outdoor" type="radio" name="indoor-outdoor">Outdoor 

In the scenario, the exercise says that if the indoor option were selected, the information sent to the server would be indoor-outdoor:on, I get this. My question is:
What would happen if the user choose another option? Is there is any situation in which the data sent to the server is indoor-outdoor:off in a scenario close to this one? Is there any reason to not use the value attribute?

Link to the challenge:

If you have a group of only one radio element or only one checkbox element it may be enough to get on or off as information and so the value attributes is not needed

So, as I understood, every input element of type radio submits its own value to the server when the form is submitted, and with that, every input without value will submit on or off; doesn’t that means that I can have many indoor-outdoor:on and indoor-outdoor:off, won’t that be a problem for the server?

this doesn’t happen, no value is submitted if the element is not checked

but if the form submit multiples of the same thing maybe it is not that useful?
a server doesn’t break for something so little, but certainly you loose information from the form

1 Like

Oh… thank you. That clarifies my doubts.