I have a set of checkboxes
with the following structure:
<div>
<div>
<label><input type="checkbox" value="a1"/>A1</label>
</div>
<div>
<label><input type="checkbox" value="a2"/>A2</label>
</div>
...
</div>
The checkboxes are only used for UI control (not for a form submission). I have an associated html element that has an onclick
jQuery function that clears all the checkboxes. This element is currently just a div
. Semantically, are there any best practices to say whether this should be a button
, an a
(with no href
value) or continue to be a div
?