E-mail List Archives
Re: One list item in a list
From: Jared Smith
Date: Sep 19, 2014 12:20PM
- Next message: Mallory van Achterberg: "Re: One list item in a list"
- Previous message: Jukka K. Korpela: "Re: One list item in a list"
- Next message in Thread: Mallory van Achterberg: "Re: One list item in a list"
- Previous message in Thread: Jukka K. Korpela: "Re: One list item in a list"
- View all messages in this Thread
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.
> Does definition
> list holds good if I use it for FAQs or instances where I have a list
> of items having a heading as <dt> and a paragraph of content under it
> as <dd>.
In HTML5, <dl> has been (re)defined as being for name/value pairs.
This more closely matches the reality of its usage on the web. So yes,
you can use <dl> to mark up FAQs or other types of name/value pairings
even if they are not strict definitions.
Jared
- Next message: Mallory van Achterberg: "Re: One list item in a list"
- Previous message: Jukka K. Korpela: "Re: One list item in a list"
- Next message in Thread: Mallory van Achterberg: "Re: One list item in a list"
- Previous message in Thread: Jukka K. Korpela: "Re: One list item in a list"
- View all messages in this Thread