E-mail List Archives
Re: <ul> for form layout?
From: Patrick H. Lauke
Date: Aug 9, 2017 3:27PM
- Next message: Birkir R. Gunnarsson: "Re:
- for form layout?"
- Previous message: Birkir R. Gunnarsson: "Re:
- for form layout?"
- Next message in Thread: Birkir R. Gunnarsson: "Re:
- for form layout?"
- Previous message in Thread: Birkir R. Gunnarsson: "Re:
- for form layout?"
- View all messages in this Thread
On 09/08/2017 21:57, Birkir R. Gunnarsson wrote:
> You can't rely on the list as a way to pair a form field and a label.
> <ul>
> ,li><span>label for form field</span><input type="text"></li>
> ..
> </ul.
>
> If you properly associate the label with the input field you can still
> use the list markup, if it has some UI rasons or benefits, but I woud
> advice you hide the markup from assistive technologies by putting
> role="presentation" on the <ul> element. You can leave it in place,
> but it adds screen reader speak on the webpage which really does not
> benefit the user any.
...at which point you might as well not use a list and instead a set of
neutral <div> elements or similar...
P
--
Patrick H. Lauke
www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke
- Next message: Birkir R. Gunnarsson: "Re:
- for form layout?"
- Previous message: Birkir R. Gunnarsson: "Re:
- for form layout?"
- Next message in Thread: Birkir R. Gunnarsson: "Re:
- for form layout?"
- Previous message in Thread: Birkir R. Gunnarsson: "Re:
- for form layout?"
- View all messages in this Thread