Beginner question:
Why is it that when we’re creating checkboxes we need to make sure that the name attribute is same for all our checkboxes within the form?
I understand that for radio buttons for example, the name attribute must match so they’re all part of the same group allowing the user of the webpage to only select one value as an answer but as far as I’m aware this isn’t the case with checkboxes and the user can select multiple answers that apply to them.
So why is it that checkboxes still require the same name attribute when it’s not necessary for them to be in the same group - unless I’ve missed something and if it is necessary, please explain why.
Thanks in advance to anyone who can provide a little clarification on this.