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

RE: Mandatory field labelling

From: Charles McCathieNevile <charles@w3.org>
Date: Thu, 21 Mar 2002 09:06:32 -0500 (EST)
To: RUST Randal <RRust@COVANSYS.com>
cc: "WAI (E-mail)" <w3c-wai-ig@w3.org>
Message-ID: <Pine.LNX.4.30.0203210906060.20985-100000@tux.w3.org>
A screenreader will often not render it. Why does it need to be hidden



On Thu, 21 Mar 2002, RUST Randal wrote:

  >Just wondered whether there is a definitive answer to the
  >issue of how to
  >display labels for mandatory fields.


  I've been giving a lot of thought to things like this lately.  Would this

  <label for="firstName">
  <span style="display: none;">This field is required.</span>
  First Name:
  <input type="text" id="firstName" />

  IE, NN and Opera will hide the "required" statement, but Lynx will show it.
  I'm not sure what a screen reader will do with it though.


Charles McCathieNevile    http://www.w3.org/People/Charles  phone: +61 409 134 136
W3C Web Accessibility Initiative     http://www.w3.org/WAI  fax: +33 4 92 38 78 22
Location: 21 Mitchell street FOOTSCRAY Vic 3011, Australia
(or W3C INRIA, Route des Lucioles, BP 93, 06902 Sophia Antipolis Cedex, France)
Received on Thursday, 21 March 2002 09:06:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:07 UTC