Help Center

Local Navigation

HTML element: <legend>

Availability

BlackBerry® Device Software 4.6 or later

The <legend> element specifies a caption for a <fieldset> element.

Attributes

Attribute

Value(s)

Description

Availability

align

bottom

left

right

top

Deprecated. This attribute specifies the horizontal or vertical alignment of the caption relative to the parent <fieldset> element. The default value is top.

4.6 or later

Common attributes

The <legend> element supports the class, dir, id, lang, style, and title attributes.

For more information, see Common attributes.

Event attributes

The <legend> element supports the onclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, and onmouseup events.

For more information, see HTML event attributes.

Index


Was this information helpful? Send us your comments.