Add the checked attribute to the input element in order to pre-select the checkbox when the page loads.

The checked attribute is a boolean attribute.

Detailed documentation and more examples you can find in our Checkbox Docs


Checkbox checked state


Other examples