I'm learning web development for fun.
Now I am making a drop-down menu that asks security questions. I learned how to create one from a tutorial online. What I'm still confused about is why the value attribute is excluded for the answer's input tag. I thought it would be needed to send the answer to the server? Does the name attribute allow the answer to be sent?
My code is below.
Thanks in advance!
<label for="question">Security question</label>
<select name="question" id="question">
<option value="q1">What is your favorite Pokemon?</option>
<option value="q2">What is your favorite book?</option>
<option value="q3">What is your city of birth?</option>
</select>
<br><br>
<label for="answer">Security question answer:</label>
<input type="text" id="answer" name="answer">