1. Home
  2. Html
  3. Unordered list
#html#list

Unordered list example. Use CSS "list-style-type" tag for different list item prefixes; disc, bullet, circle, square or none.

<ul>
    <li>Blue</li>
    <li>Red</li>
    <li>Yellow</li>
    <li>Green</li>
</ul>

<ul style="list-style-type: square">
    <li>Square list item style</li>
</ul>
Output:
  • Blue
  • Red
  • Yellow
  • Green
  • Square list item style
copy
Full Html cheatsheet
Sitemap Git repository