THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <menuitem> radiogroup Attribute

HTML menuitem Tag Reference HTML <menuitem> tag

Example

A <menuitem> element that belongs to a radiogroup:

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

Definition and Usage

The radiogroup attribute specifies the name of the group of command that will be toggled when the command/menu item itself is activated/toggled.

Note: This attribute can only be used if type="radio".


Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Attribute
radiogroup Not supported Not supported Not supported Not supported Not supported

Differences Between HTML 4.01 and HTML5

The <menuitem> tag is new in HTML5.


Syntax

<menuitem radiogroup="groupname">

Attribute Values

Value Description
groupname Specifies the name of the group of command that will be toggled when the command itself is activated/toggled (only for type="radio")

HTML menuitem Tag Reference HTML <menuitem> tag

COLOR PICKER

colorpicker

SHARE THIS PAGE






Search w3schools.com:

Translate w3schools.com: