Javatpoint Logo
Javatpoint Logo

HTML <Checkbox> Tag

The HTML <checkbox> tag is used to define the square boxes. It is a form element which allows users to select one or more options from the given options.

It is created by the type attribute of the <input> element as shown in the following syntax:

If we want to select any checkbox by default, then we have to set the checked attribute with the "yes" value as described in the following syntax:

Example

Test it Now

Output:

HTML Checkbox Tag

Browser Support

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<checkbox>YesYesYesYesYes

Next TopicHTML





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA