WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: One list item in a list

for

From: Hans Hillen
Date: Sep 19, 2014 4:56PM


A one-item list or even a no-item lists conveys to the user that this is a
structure capable of containing a group of items. It lets the user know
that at any other time there may be more items there and the content is
enumerabe. Like Jared said: if you have a list, say a to-do list, and you
check off items until you get to the last item, that doesn't mean it stops
becoming a list.

On Sat, Sep 20, 2014 at 7:53 AM, Mallory van Achterberg <
<EMAIL REMOVED> > wrote:

> On Fri, Sep 19, 2014 at 12:20:25PM -0600, Jared Smith wrote:
> > Rakesh wrote:
> >
> > > I was so far of the thought that a HTML list should contain more than
> > > 2 list items.
> >
> > My wife and I share a shopping list and I pick up the groceries on the
> > way home from work. It currently has one item - lettuce. Yet it's
> > still a shopping list.
> >
> > I admit it is a bit atypical for a list to only have one item - and
> > there is overhead that should be considered for developers, sighted
> > users, and screen reader users when encountering a list with one item
> > (and for me when stopping at the grocer for only lettuce) - but
> > there's nothing that prohibits this.
>
> I have lists on our e-commerce platforms where there may only be one
> item available until a user logs in. Since it's a list of things users
> can do regarding a product, they do belong in the same list, but some
> options only make sense for users who are also logged in.
>
> _mallory
> > > >