List

Introduction

The list properties specify the style of list elements.

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 Properties

PropertyValuesDescription
List Style Typenone, disc, circle, decimal, lower alpha, upper alpha, upper romanSpecifies the type of list-item marker in a list.
List Style Imageimage, noneReplaces the list-item marker with an image.
List Style Positionnone, inside, outsideSpecifies if the list-item markers should appear inside or outside the content flow.
Was this article helpful?
YesNo

Couldn't Find Your Answer?

Get quality customer support with our professional support team.

Create A Support Ticket
Live Editor