W3Schools.com

HTML5 <command> disabled Attribute

HTML5 command Tag Reference HTML5 <command> tag

Example

A disabled <command> element:

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

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The disabled attribute is currently only supported by Internet Explorer 9.


Definition and Usage

The disabled attribute is a boolean attribute.

When present, it specifies that the command element should be disabled.


Differences Between HTML 4.01 and HTML5

The <command> tag is new in HTML5.


Syntax

<command disabled="disabled">

Note: The disabled attribute is a boolean attribute, and can be set in the following ways:

  • <command disabled>
  • <command disabled="disabled">
  • <command disabled="">

HTML5 command Tag Reference HTML5 <command> tag
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE