Example

A simple <input> tag with checkbox attribute:

Laboratory

description & Usage

The <input type="checkbox>" attribute is used to create a checkbox.

A checkbox is a square that the user can tick. and change its status to active or inactive.

Notes

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
<input type="checkbox">

Syntax

Attribute Values

Values Description