HTML checkbox as checked example

In This Tutorial

Checkbox with checked value

Sometimes you need checkboxes that are already ticked or checked as the web page loads that contains an HTML form. You can use the checked attribute to make the checkbox as pre-checked. The following example shows how to use the checked attribute of the checkboxes:

The experience this online option also shows the PHP script to get the checkbox value.

Checkbox checked in multi-checkboxes example

The following example uses multiple checkboxes and out of five, two are already ticked by using the “checked” attribute of the checkbox.

You can see a few options to select the expertise. Two options are already checked as the example page loads, i.e. HTML and Java.

Also see HTML form | HTML input type | HTML link | HTML table

Was this article helpful?

Related Articles

Leave A Comment?