E-mail List Archives
Thread: Labels for file fields?
Number of posts in this thread: 2 (In chronological order)
From: Dean Hamack
Date: Thu, May 07 2009 6:00PM
Subject: Labels for file fields?
No previous message | Next message →
I'm wondering how well screenreaders work with file fields in forms and
whether or not it's necessary to use a label. For sighted users, a label
on a file field is kinda redundant.
Is this acceptable?
<fieldset>
<legend>Step 2: Upload Edited File</legend>
<ul>
<li><input name="template" id="template" type="file" /></li>
<li><input name="" type="submit" value="Upload" /></li>
</ul>
</fieldset>
From: Peter Weil
Date: Fri, May 08 2009 7:15AM
Subject: Re: Labels for file fields?
← Previous message | No next message
On May 7, 2009, at 6:56 PM, = EMAIL ADDRESS REMOVED = wrote:
> I'm wondering how well screenreaders work with file fields in forms
> and
> whether or not it's necessary to use a label.
See "Use the label element to make your HTML forms accessible" at
456bereastreet.com:
http://tinyurl.com/ysju7g
> Is this acceptable?
>
> <fieldset>
> <legend>Step 2: Upload Edited File</legend>
> <ul>
> <li><input name="template" id="template" type="file" /></li>
> <li><input name="" type="submit" value="Upload" /></li>
> </ul>
> </fieldset>
The way I understand it, "labeling" form controls (inputs) via the
value attribute is not an acceptable substitute for the label element.