E-mail List Archives
Re: <ul> for form layout?
From: Graham Armfield
Date: Aug 10, 2017 12:01PM
- Next message: Birkir R. Gunnarsson: "Re:
- for form layout?"
- Previous message: R.U. Steinberg: "Re: Dogs, cats, ARIA, and JAWS"
- Next message in Thread: Birkir R. Gunnarsson: "Re:
- for form layout?"
- Previous message in Thread: escetic@gmail.com: "Re:
- for form layout?"
- View all messages in this Thread
For me, I think it's a valid use of an unordered list, and pretty much
every form I've created uses <ul> and places the label + input pairs inside
an <li> tag. It is, after all, a collection of related items - in this
case, form fields.
If the screen reader announces that it's a list and tells the user how many
elements are in the list - ie how many form fields, that seems to me to be
useful information. If my form consists of 5 elements the user may have a
different expectation as to how long the form is going to take compared to
if there were 15 or more elements.
When using this construct I always ensure that any hidden fields are kept
outside the <ul>.
Regards
Graham Armfield
- Next message: Birkir R. Gunnarsson: "Re:
- for form layout?"
- Previous message: R.U. Steinberg: "Re: Dogs, cats, ARIA, and JAWS"
- Next message in Thread: Birkir R. Gunnarsson: "Re:
- for form layout?"
- Previous message in Thread: escetic@gmail.com: "Re:
- for form layout?"
- View all messages in this Thread