i

Learn HTML and CSS in 10 Days

List Item Styling

By default, ordered and unordered list utilizes list markers. The ordered list uses numbers, while the unordered list uses solid dots. With the help of CSS, the position, as well as the style of the list items marker, can be made to change.

List Style Type Property

The property of ‘list-style-type’ helps in defining the list item marker’s content. The values are available from decimal numbers to Armenian numbering.

HTML

CSS

ul {

  list-style-type: square;

}