E-mail List Archives
Re: <ul> for form layout?
From: Birkir R. Gunnarsson
Date: Aug 9, 2017 3:32PM
- Next message: Kelly Ford: "Re: using .svg images accessibly"
- Previous message: Patrick H. Lauke: "Re:
- for form layout?"
- Next message in Thread: escetic@gmail.com: "Re:
- for form layout?"
- Previous message in Thread: Patrick H. Lauke: "Re:
- for form layout?"
- View all messages in this Thread
That too!
On 8/9/17, Patrick H. Lauke < <EMAIL REMOVED> > wrote:
> 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
> > > > >
--
Work hard. Have fun. Make history.
- Next message: Kelly Ford: "Re: using .svg images accessibly"
- Previous message: Patrick H. Lauke: "Re:
- for form layout?"
- Next message in Thread: escetic@gmail.com: "Re:
- for form layout?"
- Previous message in Thread: Patrick H. Lauke: "Re:
- for form layout?"
- View all messages in this Thread