A.15 Form Element Tags^601
Table A.28
Attribute Value Usage
selected "selected" Configures an option selected by default.
value Text or numeric
B.Special Characters
A value given to a form element that is passed to the form handler if the
item is selected.
disabled disabled Prevents this option from being selected.
The <label>Ta g
<label></label>
The <label>tag configures a text label that is associated with a form element. Table
A.29 shows <label>tag attributes and their values.
Table A.29
Attribute Value Usage
accesskey A character on the keyboard Configures a hot key that immediately places the cursor on
the form element.
for Corresponds to the value of an id
attribute on a form element
Associates a text label with a form element.
title A brief text description Configures a brief text description that will display in some
browsers when a mouse is placed over the label.
The <fieldset>Ta g
<fieldset></fieldset>
The <fieldset>tag configures a group of form elements. It is used together with the
<legend>tag.
The <legend>Ta g
<legend></legend>
The <legend>tag is only used within the <fieldset>tag. It configures a text descrip-
tion for the <fieldset>grouping. Table A.30 shows <legend>tag attributes and their
values.
Table A.30
Attribute Value Usage
accesskey A character on the key-
board
Configures a hot key that immediately places the cursor on the first form
element in the legend area.
align "top", "bottom",
"left", "right"
Configures the alignment of the text legend. (Deprecated)
title A brief text description Configures a brief text description that will display in some browsers
when a mouse pointer is placed over the text legend.