W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2002

LABEL and/or TITLE In Forms?

From: Hy Cohen <hy@miplet.com>
Date: Wed, 13 Mar 2002 15:04:50 -0800
To: "'wai-ig list'" <w3c-wai-ig@w3.org>
Message-ID: <ELEPJKECJFFCPMPIOFNGCEODDIAA.hy@miplet.com>
Hi Everyone,

We're writing  the HTML code for the forms of our website, and would like
some advice on how to best make the forms accessible.

What is the proper way to code a description for a form field?

Option 1:
<LABEL for="color">What is your favorite color?</LABEL>
<INPUT type="text" name="color"  id="color">

Option 2:
What is your favorite color?
<INPUT type="text" name="color" id="color" title="What is your favorite
color?>

Option 3:
<LABEL for="color">What is your favorite color?</LABEL>
<INPUT type="text" name="color" id="color" title="What is your favorite
color?>

...or something else?

Thanks so much for your help!

Warmly,
Hy
hy@miplet.com



Accessible Activities
P.O. Box 75581
Seattle, WA   98125-0581

Local Voice / Fax:  206-926-0269
Toll-Free Voice / Fax: 1-800-250-2124
_______________________________
Accessible Activities is a 501(c)(3), tax-exempt, charitable, non-profit
organization, incorporated in the State of Washington, USA.
Received on Wednesday, 13 March 2002 18:07:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:01 GMT