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


Defines a text label to associate with an input control for a web form. The LABEL element is intended to be used with input controls that do not have a default method of displaying a label.

You may associate more than one label with a single input control by creating multiple references via the for attribute.


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)
FOR References the ID of the input control this label should be associated with.


<FORM METHOD="post" ACTION="testlabel.php">
    <TD><LABEL FOR="fname">First Name</LABEL>
    <TD><INPUT TYPE="text" NAME="firstname" ID="fname">
    <TD><LABEL FOR="lname">Last Name</LABEL>
    <TD><INPUT TYPE="text" NAME="lastname" ID="lname">

Renders As:


HTML 4.01
Return to HTML Tag Reference Overview

Featured Clients

Activex America

Part of Orvado's vast skill set is the ability to create effective email newsletter designs. The Arthritis Chronicle by Activex America is one such newsletter.
Site Map   Terms of Service   Privacy Policy