List elements (list)
Lists must be created using <ul>, Lists must convey their structure programmatically—either by using semantic list elements (<ul>, <ol>, <dl>) or by applying ARIA list roles (role="list" with role="listitem").
li outside of ul:
In this example <li> element is used for outside of <ul>
- Item 1
- Item 2
The (DOM/programmatic) structure of the list above looks like this:
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
<li>Item 3</li>
<li>Item 1</li>
<li>Item 2</li>
</ul>
<li>Item 3</li>