Styling Lists

Styling Lists

HTML lists can be styled in all the standard different ways in which we style the HTML elements. But, there are also some CSS properties that are specific to lists.

Marker Style

For an unordered list, each item has a little circular disc as the marker type by default. We can change this marker using the property list-style-type:

Other marker types available for unordered lists are disc and circle.

For an ordered list, the default marker type is decimal numbers. We can change this with some values like decimal, upper-alpha, lower-roman and upper-roman.

The value none can be used to remove the markers for both types of lists.