English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Complete List of HTML Tags

HTML: <command> disabled attribute

This article introduces the usage of HTML command disabled attribute, online examples demonstrate how to use HTML command disabled attribute, browser compatibility, syntax definition, and detailed information about its attribute values.

 HTML <command> balise

Online Example

A disabled <command> element:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Use of HTML <command> disabled Attribute-Basic Tutorial(oldtoolbag.com)</b>/title>
<script>
function setAlign()
{
    alert("Some JavaScript....");
}
</script>
</head>
<body>
<menu>
<command type="radio" label="Left" onclick="setAlign(&"39;left')</b>Left/command>
<command type="radio" label="Center" disabled onclick="setAlign(&"39;center')</b>Center/command>
<command type="radio" label="Right" onclick="setAlign(&"39;right')</b>Right/command>
</menu>
<p><b>Attention :</b>/b> Internet Explorer 9 Prend en charge l'attribut disabled.</p>
</body>
</html>
Vérifiez voir ‹/›

Compatibilité du navigateur

IEFirefoxOperaChromeSafari

Actuellement, presque tous les navigateurs populaires ne prennent pas en charge l'attribut disabled.

Attention :Internet Explorer 9 Prend en charge l'attribut disabled (seulement IE9 est pris en charge, ni les versions précédentes ni les versions suivantes ne prennent en charge).

Définition et utilisation

L'attribut disabled est un attribut booléen.

L'attribut disabled spécifie que l'élément command doit être désactivé.

HTML 4.01 et HTML5différences

La balise <command> est une balise HTML5 des nouvelles balises.

Différences entre HTML et XHTML

Dans XHTML, l'abréviation des attributs est interdite, l'attribut disabled doit être défini comme <command disabled="disabled">.

Syntaxe

<command disabled>

 HTML <command> balise