...
...
Required Single Checkbox
...
You can make standalone/single checkboxes mandatory to complete by using applying the “required” attribute to work across screen readers and browser combinationsthe input tag.
Markup
Code Block |
---|
<form> <input id="searchagreement" type="textcheckbox" required aria-labelinvalid="Enter search criteria"> <button>Search</button>false"> <label for="agreement">All the information I have submitted in this application is true</label> </form> |
...