Easy Tutorial
❮ Canvas Fill Att Iframe Marginwidth ❯

HTML <command> checked Attribute

HTML <command> Tag

Example

A pre-selected <command> element:


Browser Support

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


Definition and Usage

The checked attribute is a boolean attribute.

The checked attribute specifies that the command element should be pre-selected when the page loads.

Note: This attribute can only be used if the command type is set to checkbox or radio, i.e., only when type="checkbox" or type="radio".


Differences Between HTML 4.01 and HTML5

The <command> tag is new in HTML5.


Differences Between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the checked attribute must be defined as <command checked="checked">.


Syntax

❮ Canvas Fill Att Iframe Marginwidth ❯