W3C home > Mailing lists > Public > www-html@w3.org > June 1998

HTML 4.0 Form input labels

From: Kevin Brown <kevin@myer.com>
Date: Mon, 15 Jun 1998 19:16:03 -0400 (EDT)
Message-Id: <3.0.5.32.19980615161537.00a4c4a0@mis5.dirs.com>
To: www-html@w3.org
Problem:
These seem to put extraneous code into an HTML page and can *double* the
labor of coding a form.  Particularly if you have a large form with many
checkboxes and radio buttons.

Solution:
Why not just require a closing tag for all input that causes the enclosed
text to respond as a label?

Before:
<INPUT TYPE="CHECKBOX" NAME="choice1" VALUE="Yes" ID="choice1">
<LABEL FOR="choice1"> Choice One </LABEL>

After:
<INPUT TYPE="CHECKBOX" NAME="choice1" VALUE="Yes"> Choice One </INPUT>

The label tag could be retained as an alternative *option*, i.e. when the
label is formatted in a separate table cell from it's input.

Kevin

-------------------------------------------------------------------------
Kevin Brown                                   (800) 693-7770
Design Staff Manager                          kevin@myer.com

MYERS INTERNET SERVICES                       MORTGAGE-NET
http://www.myer.com                           http://www.mortgage-net.com
"More Business Has Closed Since We Opened"    Mortgage Shopping Made Easy!

BESTRATE                                      MPRO-NET
http://www.bestrate.com                       http://www.mpro-net.com
Mortgage rate database                        Mortgage Professionals Site
Received on Tuesday, 16 June 1998 05:09:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:37 GMT