Html5 Command Lable Attribute Tag

The html5 command lable attribute tag is use to the visible label of a command.The command lable attribute tag was introduced in HTML 5. The command lable attribute tag did not exist in older versions of HTML.In lable attribute value is name.

Syntax:

<command label="value">

Example Code

<!DOCTYPE HTML>
<menu>
  <command onclick="alert('This is command lable attribute button!')" label="java script alerts"> Click This! </command>
</menu>

Out Put :



Click This!

In the above example label = "java script alerts" is a command type attribute.





Content