<button disabled>

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Attribute of
Creating A Button With The HTML Button Element: Here's How
What does <button disabled> do?
Disables the button. It cannot be clicked and usually appears gray.

Code Example

<button disabled>You can't click me.</button>
Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for disabled

iefirefoxchromeedgesafariopera
AllAllAllAllAllAll