The HTML5 command Tag

The HTML5 <command> tag is used for specifying a particular command that can be managed by the user. This includes a radiobutton, checkbox or command button. The commands that can be placed could be, but is not limited to, toolbar or context menu, a part of the <menu> element or a specification for a keyboards shortcut.

The HTML5 <command> tag is a new addition in HTML5 so this is not seen in HTML4.01. In addition, it is also not supported even by the major web browsers these days like Firefox, Safari, Internet Explorer and Google Chrome.

The HTML5 <command> tag is also compatible with the Global Attributes and Event Attributes in HTML5.

The attributes for HTML5 <command> tag are the following:

Attribute

Value

Description

checked

checked

Set if command should be checked

disabled

disabled

Sets command to enabled or diabled

icon

URL

Sets image of the command

label

text

Sets name of the command

radiogroup

groupname

Set group of the command

type

checkbox
command
radio

Sets the type of command

It has to be noted that these attributes are all new since HTML5 <command> tag is not present in HTML4.01.

Featured pages

Overview

Learn about HTML5 architecture, design principles and patterns on HTML5 Overview Tutorial. Become …

Tags

Learn about HTML5 tags and discover a new list of HTML5 tags. Find out about HTML5 tags support by…

Welcome

 Learn HTML5 development techniques, tips and tricks on our website. Find out what is required…

Date Time Picker

HTML5 forms use date and time controls regularly. HTML5 date and time controls are used by booking …