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

HTML Reference Guide

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

BACK <LABEL> Command next

Command Syntax:

<LABEL command parameters>
  input label text
</LABEL>

The command defines an input label in a <FORM> and is designed to accompany a corresponding <INPUT> command or other form input element.

The command produces no visible effect but associates the label with the corresponding form input field element.  The two are associated with a shared name.

This command functions only in the Internet Explorer browser at present.

See also:  <FORM>, <INPUT>.

 

Command Parameters:
for="input field name"

A name which must exactly match the name applied to the corresponding form input block or box.

 

Example:
<FORM method="post"> <FIELDSET> <LEGEND><B>Your Name</B></LEGEND> <LABEL for="fname">First Name:</LABEL><BR> <INPUT name="fname" type="text" size="20"><BR> <LABEL for="lname">Last Name:</LABEL><BR> <INPUT name="lname" type="text" size="20"> </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 NetStrider.  World Rights reserved.




Hosted by uCoz