History and Demonstrated Need
A list head or title is the element that provides a title or caption to a list. This is not the same as titling sections of nested lists.
The Web and Publishing industries need a standardized method to state the title or caption of a list. The Digital Publishing Interest Group highlighted this need from an accessibility perspective in a note published in May 2016, explaining that there are many methods of creating a visual differentiated list title, but those methods convey no semantic meaning.
JATS, Journal Article Tag Suite, is the standard markup for the National Institutes of Health and therefore a widely-used XML tag suite for scholarly article archiving interchange. The content model for list
and def-list
both allow for the inclusion of the title
element, which takes on different meaning, depending on context. In JATS, the distinction between ordered list and unordered list is conveyed by the list-type
attribute.
What has been tried?
A common recommendation is to simply use HTML h1 - h6
elements. This has implications for sectioning, usability, and accessibility. Additionally, the heading element is not a part of the actual list. This also has implications for the number of headings available for other content. In this example, the list title is tagged as h4
. What are the implications for the content that should be have level-4 headings? How does one using AT interact with list titles tagged as headings as opposed to those heading elements that are intended as headings?
Influences
...Books that Influenced my Writing
...Dr. Seuss
...Important Seussian Characters
- Thing One</li>
- The Cat in the Hat
- The Lorax
- Sally
Other solutions have included nesting lists in the <figure>
element to take advantage of <figcaption>
. Science.ai, an organization that works with scholarly publishing has chosen this path, as it is congruous with JATS. This is illustrated at https://gist.github.com/darobin/6b1342e080925d5ed7ced89921a9f4de by Robin Berjon.
Past discussions in earlier versions of HTML and with the WHAT WG have revolved around titling sections of nested lists. This is a much simpler problem to solve.
Proposal
This proposal is to create an element that can be the child of <ul>, <ol>, or <dl>
called listhead, listtitle, or listcaption. It could be modeled largely on the figcaption element, as its function for the different types of lists is parallel to the function that a caption serves for a figure.
The above example would be rewritten as:
Influences
...Books that Influenced my Writing
...Dr. Seuss
...<ul> <lh>Important Seussian Characters</lh> <li>Thing One</li> <li>The Cat in the Hat</li> <li>The Lorax</li> <li>Sally</li> </ul> </pre>