Lists in HTML can be styled using CSS. There are two main types of lists: ordered lists and unordered lists. CSS provides various properties to style these lists and their items.
Unordered lists are styled with bullets by default. You can customize the appearance of these bullets using CSS:
ul {
list-style-type: square;
}
Ordered lists are styled with numbers by default. You can customize the numbering using CSS:
ol {
list-style-type: upper-alpha;
}
You can remove list markers entirely by setting the list-style-type
to none
:
ul {
list-style-type: none;
}
You can use custom images as list item markers by setting the list-style-image
property:
ul.custom-image {
list-style-image: url('path/to/image.png');
}