I am creating a multiple choice quiz for HTML and I know about a technique that would allow me to use several submit buttons - one for each answer to a separate question. Then I could process the form in PHP using the values โโof the submit button and determine which answer the user chose. The reason for using the submit buttons is that they can be styled accordingly.
However, I am wondering if this is bad practice in terms of accessibility? Would it be better to use an individual form for each answer to a question? There are many questions here about how to use multiple submit buttons, but they don't seem to touch this point.
source share