Latest web development tutorials

HTML command disabled property

Tag Reference HTML command HTML <command> tag

Examples

A disabled <command> element:

<menu>
<command type="radio" label="Center" disabled
onclick="setAlign('center')">Center</command>
</menu>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently, almost all the major browsers do not support the disabled attribute.

Note: Internet Explorer 9 support disabled attribute (only IE9 support, before or after the version is not supported).


Definition and Usage

disabled attribute is a Boolean attribute.

disabled property provisions should disable command element.


Differences between HTML 4.01 and HTML5

<Command> tag is new in HTML5 tags.


Differences between HTML and XHTML

In XHTML, prohibit attribute minimization, disabled attribute must be defined as <command disabled = "disabled">.


grammar

<command disabled>


Tag Reference HTML command HTML <command> tag