Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <input>checked Attribute

  • Last Updated : 29 Apr, 2019

The HTML <input>checked Attribute is used to indicate whether an <input>element should be checked when the page loads up. It is a Boolean attribute.
It can be used with element only where type is either “checkbox” or “radio”.


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

<input type = "checkbox|radio" checked> 

Example: This Example illustrates the use of checked attribute in input element.

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


Supported Browsers: The browser supported by HTML <input>checked Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!