WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: label without form-element

for

Number of posts in this thread: 4 (In chronological order)

From: Barthofer Michael
Date: Tue, Aug 09 2005 11:09AM
Subject: label without form-element
No previous message | Next message →

hello everybody

I am currently checking a course registration system for the adult education centre in Linz concerning WAI-guidelines. on the page, where the user checks the data he entered in the registration form, our contractor uses labels in the code, even though there are no form-elements present (maybe its just a copy/paste-error).

what I would like to know is, how do screenreader handle this situation? will they ignore the label or read it? besides, the label-text is totally senseless at this point. e.g. "please enter your name" - where, if there is no input-element?

because this is no tailored solution just for us, but a standard product of the contractor, I would need "hard facts" against this misuse of the labels to initiate a change of the code.

example:

<label for="tedit_vornameid" class="left" title="Please enter your first name"> Vorname: *</label>
<span class="textsonstiges">Michael</span><br />

yours
Michael Barthofer

------------------------------------
Mag. Michael Barthofer
Stadtkommunikation Linz
Altes Rathaus
A-4041 Linz
Tel. +43 (0)732/7070-1347
Fax +43 (0)732/7070-54-1347
mailto:michael.barthofer |at| mag.linz.at
visit: http://www.linz.at/
visit: http://www.linztermine.at/




From: Jan Eric Hellbusch
Date: Tue, Aug 09 2005 11:09AM
Subject: RE: label without form-element
← Previous message | Next message →

Hello Patrick,

> > A screen reader will only "fetch" a label when its focus is in a form
> > element. That said, only some screen readers will currently do that.
>
> Jan, don't have a screen reader handy at the moment to check, but: would
> the label be read out when the screen reader is not in forms mode, just
> treating it as any other text?

Certainly.

Screen readers usually have (at least) two modes when working with the
Internet Explorer: a reading mode (where LABEL is treated as any other
Text - without the semantics) and an edit mode (where forms can be
accessed).

Regs
Jan

--
Books on accessible web design:
www.barrierefreies-webdesign.de/buecher.php





From: Patrick Lauke
Date: Tue, Aug 09 2005 11:09AM
Subject: RE: label without form-element
← Previous message | Next message →

> Jan Eric Hellbusch

> A screen reader will only "fetch" a label when its focus is in a form
> element. That said, only some screen readers will currently do that.

Jan, don't have a screen reader handy at the moment to check, but: would
the label be read out when the screen reader is not in forms mode, just
treating it as any other text?

Patrick
___________
Patrick H. Lauke
Webmaster / University of Salford
http://www.salford.ac.uk
___________
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
___________




From: Jan Eric Hellbusch
Date: Tue, Aug 09 2005 11:09AM
Subject: RE: label without form-element
← Previous message | No next message

Hello Michael,

> what I would like to know is, how do screenreader handle this
> situation? will they ignore the label or read it? besides, the
> label-text is totally senseless at this point. e.g. "please enter
> your name" - where, if there is no input-element?

LABEL is, in fact, useless in your example,

A screen reader will only "fetch" a label when its focus is in a form
element. That said, only some screen readers will currently do that.

Regs
Jan

--
Books on accessible web design:
www.barrierefreies-webdesign.de/buecher.php