In your radio button example, the name and value would be sent as a key/value pair in the form scope when the form is submitted. So, in this case, you would see gender=gender. That wouldn’t be very useful though, would it? Rather, you’d want something meaningful like “male” or “female” for your radio button values. For a set of radio buttons or checkboxes, the name is also used to group them, so you can have several radio buttons or checkboxes with the same name.
An id, however, must be unique and is often used to reference an HTML element in JavaScript using syntax like document.getElementById(“gender”).
Is that on the new full stack curriculum? Yes they also explain it there. Also on the old curriculum of Responsive web design such as the cat photo app, the registration form. You can visit the curriculum by clicking the top left hand corner.