Html5 Command Checkbox Checked Attribute Tag

The <command> tag is new in HTML5.The checked checkbox attribute indicate to command tag is selected.The command tag will be checked if this attribute is present. This attribute tag one we can use checkbox and radio button. command checkbox checked attribute value is checked.

Syntax:

<command checked="checked"></command>

Example Code

<!DOCTYPE HTML>
<menu>
  <command onclick="alert('This is command checkbox checked attribute button!')" type="checkbox" checked="checked">Click This! </command>
</menu>

Out Put :




Click This!

In the above example type = "checkbox" is a check box type and checked ="checked" is a checkbox selected.





Content