Re: Query on labeling

On 21/04/2021 09:44, Ragupathy Ramasamy wrote:
[...]
> 3. the element looks like below once it is expanded and the place holder 
> will disappear once the user starts typing.
[...]
> For the "First Name" edit field also I have used a place holder instead 
> of a label
[...]

In both cases, placeholder text that then disappears once the user 
starts typing or returns to a page where the value is already pre-filled 
won't pass 3.3.2 Labels or Instructions.

See this older discussion https://github.com/w3c/wcag/issues/864

Consider perhaps adding a floating label or similar.

P
-- 
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke

Received on Wednesday, 21 April 2021 13:38:39 UTC