HTML <command> radiogroupAttribute

HTML command 标签参考手册HTML <command> Tag

Examples

A <command> element that belongs to a radiogroup:

<menu>
<command type="radio" label="Left" radiogroup="alignment" onclick="setAlign('left')">Left</command>
</menu>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently, almost all mainstream browsers do not support the radiogroup attribute.


Definition and Usage

The radiogroup attribute specifies the name of a group of commands that will be toggled when the command is activated or toggled.

Note:This attribute can only be used on regular commands with type="radio", that is, it is only available when type="radio".


Differences between HTML 4.01 and HTML5

The <command> tag is new in HTML5.


Syntax

<command radiogroup="groupname">

Attribute Values

Value Description
groupname Specifies the name of the group of commands that will be toggled when the command is activated or toggled (only applies to type="radio").


HTML command 标签参考手册HTML <command> Tag Other Extensions