Orvado Technologies is your one-stop shop for custom web site solutions, quality work at affordable rates
 
orvado side

<LEGEND>

A legend is used to provide a caption to a FIELDSET element. A FIELDSET groups a related set of input controls and content together for easier navigation.

This is especially useful for non-graphical user agents (browsers) to expain the usage of the input controls.

Attributes

Attribute Description
ID Identifies this tag to reference in script (program code)
CLASS Define the class used to render this element (defined by a style sheet)
TITLE A title that is associated with the element (displayed as a tooltip in Internet Explorer)
ALIGN [DEPRECATED] Indicates the horizontal alignment of text for the caption. This is replaced by the CSS specification.

Example

<FORM action="testlengend.php" method="post">
 <FIELDSET>
  <LEGEND>Personal Information</LEGEND>
  Last Name: <INPUT NAME="lastname" TYPE="text" TABINDEX="1"><br>
  First Name: <INPUT NAME="firstname" TYPE="text" TABINDEX="2"><br>
  Address: <INPUT NAME="address" TYPE="text" TABINDEX="3"><br>
  ...more personal info...
 </FIELDSET>
</FORM>

Renders As:

Personal Information Last Name:
First Name:
Address:
...more personal info...

Compatibility

HTML 4.01
Return to HTML Tag Reference Overview

Featured Clients

Sarasota Wedding Photographer

CMS Photography needed a website that would help them in search engine rankings. We took the site and redesigned the code to be XHTML Strict validated code that would give them the best foot forward.
Site Map   Terms of Service   Privacy Policy