<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

Sharing is caring!

Attribute of
How To Use The HTML Tag
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

AllAllAllAllAllAll