Use an unordered list when the order of items does not matter. Browsers show bullet points by default.
<ul>
<li>Fiction</li>
<li>Poetry</li>
<li>Cookbooks</li>
</ul>
ulis the list. It means unordered list.liis a list item. Every item must be inside aulorol.
What goes inside an item
A list item can hold more than text: links, images, even other lists.
<ul>
<li><a href="fiction.html">Fiction</a></li>
<li><a href="poetry.html">Poetry</a></li>
</ul>
Changing the bullets
Use CSS to change the bullet style or remove it.
<ul style="list-style-type: square;">
<li>Square bullet</li>
<li>Another one</li>
</ul>
The most useful values are disc, circle, square and none.
Lists for navigation
Menus are lists of links. Marking them up as lists helps screen readers announce “list of 5 items”. You can remove bullets with CSS and lay the items out in a row.
Using br or paragraphs instead of a list
<br> are not recognised as a list by assistive tools.Putting text directly inside ul
li elements may be direct children of ul. Wrap any text in an li.