Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML command label attribute

HTML label property

HTML command Tag Reference HTML tag

Example

A command with a label element:

onclick="save()">Save

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently, almost all major browsers do not support the label attribute.


Definition and Usage

The required label attribute specifies the name of the command, to be displayed to the user.


Differences between HTML 4.01 and HTML5

The tag is new in HTML5.


Syntax

Attribute values

Value Description
text Specifies the visible label of the command.

HTML command Tag Reference HTML tag