You are here:  NetStrider » Tutorials » HTMLRef » Commands » LEGEND «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 - 2002 NetStrider.   Presented as a public service.

BACK <LEGEND> Command next

Command Syntax:

<LEGEND>Field Set Legend</LEGEND>

The command defines the legend to be associated with a bordered field set.  Field sets are useful for identifying discrete areas of text or areas for data input within a form.

The command is specific to the Internet Explorer browser.

See also:  <FIELDSET>, <FORM>

Example:
<FORM method="post">
  <FIELDSET>
    <LEGEND>
      <B>Name</b>
    </LEGEND>
    <B>First:</B>
    <INPUT name="fname"
           type="text"
           size=20">
    <B>Last:</B>
    <INPUT name="lname"
           type="text"
           size=20">
  </FIELDSET>
  <FIELDSET>
    <LEGEND>
      <B>Address</B>
    </LEGEND>
    <B>Street:</B>
            
    <INPUT name="street"
           type="text"
           size=20"><BR>
    <B>City:</B>
    <INPUT name="city"
           type="text"
           size=20">
    <B>State:</B>
    <INPUT name="state"
           type="text"
           size=3">
    <B>Zip:</B>
    <INPUT name="zip"
           type="text"
           size=9">
  </FIELDSET>
</FORM>
            
 
Yields - (simulated)

Simulated Form Only in the Internet Explorer browser.
Return to Section I:L

Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 - 2002 NetStrider.  World Rights reserved.