<fieldset>
groups related form controls into sections.
<legend>
assigns a caption to a <fieldset>
.
tabindex
lets you set the order in which hyperlinks and form controls gain focus.
XHTML 2.0: The W3C is discussing replacing tabindex
in XHTML 2.0 with common nextfocus
and prevfocus
attributes, which contain an id
reference of the next element to be activated.
The controls are numbered according to their tab order. Tabbing forward from "1:" should take you to "2:", and so forth.
<label>
associates its contents with a form control. In a Web browser, selecting a label could give its corresponding control focus.
The accesskey
attribute assigns a key to give focus to an element.
XHTML 2.0: The W3C is discussing replacing accesskey
in XHTML 2.0 with a common access
attribute to assign an access name
that will activate an element. accesskey
is too associated with particular user interfaces. Instead of keystrokes, access
associate words with elements which users may select them by other means, such as selecting them from a menu or speaking an access name into a microphone.
Selecting (ex. clicking on) the following labels should activate the corresponding field. The highlighted letters are designated as shortcut keys for the field, which may be supported in different ways by different Web browsers.
For example, in Internet Explorer 4.0— and Netscape 6.0— for Windows, Alt‐U will select the “User name:” field.
Related Mozilla bug reports: Accesskey-XUL, Legend-Accesskey, Fieldset-Eats-Spaces, Checkbox-Accesskey.
Related Internet Explorer bug reports: Channel9 Wiki: Internet Explorer Standards Support.
<button>
allows push button controls to contain any sort of markup, not just simple text.
This form has buttons of each type. The change message buttons change the message field when selected, if your Web browser supports ECMAScript. If you type over the text in the message field, Reset should restore the message to its default. Submitting the form should reload this page.
<optgroup>
groups into sections the <option>
elements in a <select>
control. A Web browser could add dividers or headings to the drop‐down list, or collapse them into cascading drop‐down menus.
The label
attribute on the <optgroup>
and <option>
elements provides a name to use within grouped selection menus.
Related Mozilla bug reports: Option-Label.
Related Internet Explorer bug reports: Channel9 Wiki: Internet Explorer Standards Support.
The previous example again, but with size="10"
set on the <select>
element.
Related Mozilla bug reports: Option-Label.
Related Internet Explorer bug reports: Channel9 Wiki: Internet Explorer Standards Support.
Though HTML 4.0’s definition of readonly
implies that checkboxes and radio buttons may be set read‐only (and no errata has changed the definition), readonly
is meant only for text
or password
.
In a working draft of the Web Forms 2.0 standard, WHAT Working Group clarifies, Specifically, it does not apply to radio buttons, check boxes, file upload fields, select elements, or any of the button types; the interface concept of
Also, the Document Object Model level 2 standard describes the associated readonly
values does not apply to button‐like interfaces.readOnly
method as Relevant only when
type
has the value “text
” or “password
”.
(Opera 5.x supported read‐only checkboxes and radio buttons, but removed support for them in version 6.0.)
Your Web browser identified itself as Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
when it requested this page. Mozilla 5.0
, why do you lie to me so?