Open jpdevries opened 8 years ago
https://github.com/jpdevries/css-only-radio-buttons/#demo
User input should always be wrapped in a form. No exceptions. Practice safe input.
Do not listen to the click event!!!! List to change and submit events. Not all users click! Even though essentially every browser will treat the "enter key" as a click, there is absolutely nothing in the spec advising them to do so. They just have to because the internet would be broken otherwise.
Native HTML Input Components come with freebies like implicit accessibility. All you have to do is use them and the rest is automatic!
Multiple Choice Answers Should be radio buttons, not
<li>
s. You can make them look however you want. https://github.com/jpdevries/css-only-radio-buttons/#demo