Skip to content

Challenge Check Radio Buttons And Checkboxes By Default

Quincy Larson edited this page Aug 20, 2016 · 1 revision

Challenge Check Radio Buttons and Checkboxes by Default

You can set a checkbox or radio button to be checked by default using the checked attribute.

To do this, just add the word "checked" to the inside of an input element. For example,

<input type="radio" name="test-name" checked>
Clone this wiki locally