SC 1.3.1 Info and Relationships and description list #4037
-
Hello. Our Web Accessibility Testing team has identified an issue while testing a web page. We are evaluating whether using a "Description List" for the text "This claim is for: Bob" is semantically correct.
We would appreciate any feedback on whether the description list is the correct semantic approach or if a different approach should be considered. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 3 replies
-
My suggestion: if it is a one item definition list, get rid of it <h2 class="mrgn-tp-0">Claim details</h2>
<p>This claim is for: John</p> |
Beta Was this translation helpful? Give feedback.
-
@stevefaulkner Thank you for the quick response.
|
Beta Was this translation helpful? Give feedback.
-
There's no definitive right or wrong here. Just a sequence of Just on the |
Beta Was this translation helpful? Give feedback.
-
for 2 items I suggest either of the following is appropriate and would use them before <h2 class="mrgn-tp-0">Claim details</h2>
<p>This claim is for: John</p>
<p>Claim number: 1234-AA-90</p> or <h2 class="mrgn-tp-0">Claim details</h2>
<ul>
<li>This claim is for: John</li>
<li>Claim number: 1234-AA-90</li>
</ul> |
Beta Was this translation helpful? Give feedback.
-
Thank you for the responses. We have encountered similar issues with screen readers concerning description lists, as noted by @patrickhlauke. Our understanding is that using appropriate markup to provide content semantically is essential for meeting accessibility standards. There are instances we have description lists with 5 more items. In such cases, how should we balance using semantic markup with ensuring accessibility? If a specific type of markup is not well-supported by screen readers, should we consider alternative methods for presenting the content, even if the semantic markup is technically appropriate for the content type? |
Beta Was this translation helpful? Give feedback.
-
If you have that many Sometimes, description lists are easily understandable with a screen reader, in which case we leave them. But other times they are incomprehensible, in which case we say they are not accessibility supported and that it is necessary to use different semantics, usually a data table. I know this is inconsistent and subjective, but it's the best we can do. It would be worse to say that description lists are always ok or that they are always not ok. |
Beta Was this translation helpful? Give feedback.
-
Please note that dl does not currently work at all in Chrome and Edge: FreedomScientific/standards-support#850 |
Beta Was this translation helpful? Give feedback.
-
@TestPartners Thank you, We would appreciate any thoughts or feedback on this approach. |
Beta Was this translation helpful? Give feedback.
-
In that case I think a data table would definitely give a better user experience, although a description list would be semantically valid. The approach I take is that if a description list already exists, I don't push for it to be replaced unless the user experience will be poor. On the other hand, if nothing has been built yet, I push very hard for a data table to be used. |
Beta Was this translation helpful? Give feedback.
for 2 items I suggest either of the following is appropriate and would use them before
<dl>
, due to the quirks @patrickhlauke describedor