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

HTML Reference Guide

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

BACK <FIELDSET> Command next

Command Syntax:

<FIELDSET>
  <LEGEND>Field Legend</LEGEND>
  some text or some commands
  . . .

</FIELDSET>

The command creates a bordered field with a legend 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:  <LEGEND>, <FORM>

Example:
<FORM method="post">
  <FIELDSET>
    <LEGEND>
      <B>Your Name</B>
    </LEGEND>
      <B>First Name:</B>
      <INPUT name="fname"
             type="text"
             size=10">
      <B>Last Name:</B>
      <INPUT name="lname"
             type="text"
             size=10">
  </FIELDSET>
            
  <FIELDSET>
    <LEGEND>
      <B>Personal Data</B>
    </LEGEND>
      <B>Sex:</B>
      <INPUT name="sex"
             type="text"
             size=3">
      <B>Age:</B>
      <INPUT name="age"
             type="text"
             size=3">
      <B>Date of Birth:</B>
      <INPUT name="dob"
             type="text"
             size=9">
  </FIELDSET>
</FORM>
            
 
Yields - (simulated)

Simulated Form
Only in the Internet Explorer browser.
Return to Section E:H

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