6929 shaares
Use
<button>
if you can count on JavaScript being available, and flipping the switch has an immediate effect.
Use<input type="checkbox"
if you want to progressively enhance the control, and flipping the switch will only take effect when the user submits it.
The post explains how.