button disabled Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:button

Description

The disabled attribute is a boolean attribute to set if the button should be disabled.

In XHTML, the disabled attribute must be defined as <button disabled="disabled">.

A disabled button:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<button type="button" disabled>Click Me!</button>

</body><!--   w w  w .j av  a2s .co  m-->
</html>

Related Tutorials