WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: One list item in a list

for

From: Mallory van Achterberg
Date: Sep 19, 2014 1:53PM


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