HTML and CSS Reference
In-Depth Information
<fieldset>
Function
Groups related elements within a form
class
,
dir
,
id
,
lang
,
onClick
,
onDblClick
,
onKeyDown
,
onKeyPress
,
onKeyUp
,
onMouseDown
,
onMouseMove
,
onMouseOut
,
onMouseOver
,
onMouseUp
,
style
,
title
Attributes
End tag
</fieldset>
; never omitted
Contains
form_content
Used in
form_content
When a group of form elements are placed within a
<fieldset>
tag, the
browser may display them in a special manner. This might include a spe-
cial border, 3D effects, or even creating a subform to handle the ele-
ments.
9.10.2.2. The <legend> tag
Use the
<legend>
tag to create a label for a
fieldset
in a form. The
tag may appear only inside a
<fieldset>
. As with
<label>
, the
<legend>
contents are to be specially treated by the HTML 4/XHTML-compliant