E-mail List Archives
Re: <ul> for form layout?
From: escetic
Date: Aug 10, 2017 8:10AM
- Next message:
: "Re: using .svg images accessibly" - Previous message: Mallory: "Re: Code review please"
- Next message in Thread: Graham Armfield: "Re:
- for form layout?"
- Previous message in Thread: Birkir R. Gunnarsson: "Re:
- for form layout?"
- View all messages in this Thread
Thank you for the feedback, these are definitely valid concerns. Seems the consensus is decidedly against. Much appreciated!
> On Aug 9, 2017, at 5:32 PM, Birkir R. Gunnarsson < <EMAIL REMOVED> > wrote:
>
> 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:
: "Re: using .svg images accessibly" - Previous message: Mallory: "Re: Code review please"
- Next message in Thread: Graham Armfield: "Re:
- for form layout?"
- Previous message in Thread: Birkir R. Gunnarsson: "Re:
- for form layout?"
- View all messages in this Thread