Description
A section of content structured as a series of questions and answers, such as an interview or list of frequently asked questions.
Examples
Example 1 — Author Question and Answer with a heading
The label is identified in the aria-labelledby attribute.
<section role="doc-qna" aria-labelledby="qna-hd">
<h2 id="qna-hd">Interview with the Author</h2>
<dl>
<dt>What … is your favourite colour?</dt>
<dd>Blue. I mean yel—auuuugh!</dd>
</dl>
</section>
Relation to ARIA
doc-qna inherits its semantics from the a section role (i.e., it represents a container
of related content, but is not a landmark).
Usage
doc-qna is typically used on section and div elements. The
role can also be used directly on a dl element as dt and dd
elements are not considered list items by default.
List of all elements allowed on
- a (without an href attribute)
- abbr
- address
- b
- bdi
- bdo
- blockquote
- br
- canvas
- cite
- code
- del
- dfn
- div
- em
- i
- img (with alt text)
- ins
- kbd
- mark
- output
- p
- pre
- q
- rp
- rt
- ruby
- s
- samp
- section
- small
- span
- strong
- sub
- sup
- table
- tbody
- td
- tfoot
- thead
- th
- tr
- time
- u
- var
- wbr