Html5 Command Radiogroup Attribute Tag

The html 5 command radiogroup attribute tag is use to the radio button and it indicate the group of commands.The command radiogroup attribute tag was introduced in HTML 5. The command radiogroup attribute tag did not exist in older versions of HTML.In radiogroup attribute value is radiogroup.

Syntax:

<command radiogroup = "value">

Example Code

<!DOCTYPE HTML>
<menu>
  <command onclick="alert('Good Morning!')" type="radio" radiogroup="group1"> Click This! </command>
  <command onclick="alert('Good After Noon!')"> Click This! </command>
  <command onclick="alert('Good Night!')"> Click This! </command>
</menu>

Out Put :



Click This!
Click This!
Click This!

In the above example type = "radio" is a one type of command types attribute.radiogroup = "group1" is a menu type attribute for a command type.





Content