W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2016

RE: Labels and place-holders in form inputs

From: Beranek, Nicholas <Nicholas.Beranek@capitalone.com>
Date: Mon, 1 Aug 2016 19:48:15 +0000
To: Userite <richard@userite.com>, "w3c-wai-ig@w3.org" <w3c-wai-ig@w3.org>
Message-ID: <SN1P103MB00623393D470A8251198C669F4040@SN1P103MB0062.NAMP103.PROD.OUTLOOK.COM>
Hi Richard,

I request that you not rely on the placeholder attribute to convey meaning. I understand that you have a <label> that is positioned offscreen, but a lack of visible labels fails SC 3.3.2 Labels or Instructions. Labels are not just for screen reader users. Not to mention, the placeholder itself disappears once the field receives focus and the user types in information.

I would leverage a different technique such as positioning the <label> element on top of the form control (like the placeholder is now) and then send it above the form control once the field receives focus and info is typed in.

Nick Beranek
Capital One

From: Userite [mailto:richard@userite.com]
Sent: Monday, August 01, 2016 3:17 PM
To: w3c-wai-ig@w3.org
Subject: Labels and place-holders in form inputs

I have an application that uses “placeholder” text inside a forms input field to tell the user what is required. This helps the form to be displayed well on a small screen such as a mobile phone. However I still need to include the <label> element (hidden via CSS) to comply with WCAG and ensure that *all* screen reader users can always know what is required.  My problem is that some screen-readers read both the <label> and the placeholder.
Any suggestions or comments warmly welcomes
Richard
www.userite.com<http://www.userite.com>

________________________________________________________

The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
Received on Monday, 1 August 2016 19:48:52 UTC

This archive was generated by hypermail 2.3.1 : Monday, 1 August 2016 19:48:53 UTC