Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML <button> disabled Attribute

Improve Article
Save Article
  • Difficulty Level : Basic
  • Last Updated : 20 Jul, 2022
Improve Article
Save Article

The disabled attribute for <button> element in HTML is used to specify that the button is disabled. A disabled button is un-clickable and unusable. It is a boolean attribute. 


<button disabled></button>



<!DOCTYPE html>
        <title>HTML  &lt;button&gt; disabled Attribute</title>
    <body style = "text-align:center">   
        <h1 style = "color: green;">GeeksforGeeks</h1>
        <h2>HTML &lt;button&gt; disabled Attribute</h2>
        <!--A disabled button-->
        <button type="button" disabled>I am disabled!</button>



Supported Browsers: The browser supported by <button> disabled attribute are listed below:

  • Apple Safari
  • Google Chrome
  • Edge 12 and above
  • Firefox
  • Opera
  • Internet Explorer
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!