I can\'t seem to find an example anywhere... what\'s the correct way of doing a HTML5 checkbox?
As far as I know and the docs state, nothing fundamental has changed. The basic markup is
What is new is some interesting properties.
form
- a reference to the form the control is associated with (nice!)autofocus
- to be focused as soon as the document is loaded (nice!)required
- require that it be checked (super nice! Although it isn't supported by Internet Explorer or Safari (yet).)