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

Property Values Description
List Type none, disc, circle, decimal, lower alpha, upper alpha, upper roman Specifies the type of list-item marker in a list.
List Image image, none Replaces the list-item marker with an image.
List Position none, inside, outside Specifies 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