Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67469

List as a "sentence" vs List as an [closed]

$
0
0

I am using Intl.ListFormat to concatenate an array of items into a string.

e.g: ['Lorem', 'Ipsum', 'Dolor', 'Amet'] becomes Lorem, Ipsum, Dolor and Amet.

By doing this I feel like I am sacrificing semantics and potentially accessibility (e.g screenreaders) by using a paragraph instead of an unordered list (below). Is this concern justified?

<ul>
  <li>Lorem</li>
  <li>Ipsum</li>
  <li>Dolor</li>
  <li>Amet</li>
</ul>

vs

<p>Lorem, Ipsum, Dolor and Amet</p>

Viewing all articles
Browse latest Browse all 67469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>