html5<command> tag


  Translation results:

command

#UK[kəˈmɑ:nd] US[kəˈmænd]

n. Command, command; command, headquarters; [computer] command; control Force

vt. command; command, control, order; deserve, deserve

vi.give order; order, instruction

adj. command, according to the order ( or request)

html5<command> tagsyntax

Function: The command element represents the command that the user can call. The <command> tag can define command buttons, such as radio buttons, check boxes, or buttons. The command element is only visible if it is inside a menu element. Otherwise this element will not be displayed, but it can be used to specify keyboard shortcuts.

Parameters:

Properties
ValueDescription
checkedcheckedDefines whether it is checked. Only for radio or checkbox types.
disableddisabledDefine whether command is available.
iconurl Define the url of the image displayed as command.
labeltextDefine a visible label for command.
radiogroupgroupnameDefine the group name to which command belongs. Only used when type is radio.
type

checkbox

command

radio

Define the command type. The default is "command".

html5<command> tagexample

<!DOCTYPE HTML>
<html>
<body>

<menu>
<command type="command">Click Me!</command>
</menu>

</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A