If you find this helpful, please click the Google Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.) |
The <command/> Tag in HTML 5
The <command> tag is one of the tags for interactive content in HTML.
<command/> Tag Syntax
Rules for coding HTML command/
elements
<command .../>
<command/> Content Model
Contents of the command element
Content: Empty. All properties are coded using attributes.
Since the <command/>
tag is a void element, it is not allowed to have any content, even HTML comments and therefore should always be coded as a self-closing standalone tag, ending with the delimiters />
rather than just >
(<command .../>
).
<command/> Tag Attributes
Attributes of the <command/> tag
global attributes | In addition to the personal attributes of the <command> tag below, any of the common HTML attributes can also be coded. |
checked="checked" | |
disabled="disabled" | |
icon | a URI reference that resolves to the URL of a small two-dimensional image resource Use percent escape codes as explained in the URL-encoding tutorial for any special characters in the URI reference. If the value of the
If the protocol scheme, username, host name/IP address and port number are omitted the default is the current host - the same server as the base of the current document. If the path starts with a slash |
label | |
radiogroup | |
title | Although title is one of the common attributes, which can be coded on any HTML element, it performs somewhat differently when coded on the command tag. |
type="command" type="checkbox" type="radio" |
<command/> Tag Examples
Examples of the command
element in HTML 5
Changes in HTML 5 - <command/> Tag
What's new in HTML 5
The <command> tag is one of the new elements in HTML 5.
Differences between HTML 5 and earlier versions of HTML
The <command> tag did not exist in older versions of HTML.
The 2000-2010 Recommendations from the W3C HTML Working Group defined the HTML namespace for the names of all HTML element types, which now includes the command element name. In older (pre-2000) versions of HTML, element type names were not associated with a namespace.