Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML | <input type=”checkbox”>

Improve Article
Save Article
  • Difficulty Level : Medium
  • Last Updated : 12 Aug, 2022
Improve Article
Save Article

The HTML <input type=”checkbox”> is used to define a checkbox field. The checkbox is shown as a square box that is ticked when it is activated. It allows the user to select one or more option among all the limited choices. 


<input type="checkbox"> 



<!DOCTYPE html>
        Input type = "checkbox"
<body style="text-align: center;">
    <h1 style="color:green;">
    <h2>&lt;input type="checkbox"&gt;</h2>
        <!-- Below input elements have attribute
                checked -->
        <input type="checkbox"
      Checked by default
        <input type="checkbox"
      Not checked by default



Supported Browsers:

  • Google Chrome
  • Firefox
  • Edge 12
  • Internet Explorer
  • Opera
  • Apple Safari

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!