So I know how to use both of these elements but what I can’t figure out is the exact contribution that a label element makes to my code. Why do I need a separate label element for each radio button? What even does this button do?
You can read up on the label element on MDN
<input> <- this is the input <label> <- this tells the user what the input is/does
If you don’t tell a user what a radio button is for, it’s just a random button on the screen without any context at all
Which button should I press? ⏺️ ⏺️
The label tag allows you to add text to the associated radio button or checkbox. The for attribute just assigns it to its responding button.