Skip to content
Related Articles

Related Articles

Improve Article

HTML | <input type=”checkbox”>

  • Difficulty Level : Medium
  • Last Updated : 28 May, 2019

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><input type="checkbox"></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
  • Opera
  • Apple Safari

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :