CSS List Styling Cheat Sheet

In HTML, there are two main types of lists:

  • unordered lists (<ul>) – the list items are marked with bullets
  • ordered lists (<ol>) – the list items are marked with numbers or letters

The CSS list properties allow you to:

  • Set different list item markers for ordered lists
  • Set different list item markers for unordered lists
  • Set an image as the list item marker
  • Add background colors to lists and list items
list-style-type: disc | circle | square | noneList Type
list-style-position: inside | outsideList Position
list-style-image: url()List Image

Leave a Reply

Your email address will not be published.