HTML list

A list is a set of items. Itams can be ordered with the tag ol or unordered with the tag ul (the most common)

Usual attributes

Attribute name Attribute value
class Set a value for CSS rules. The CSS rule will be applied to all tags with the same class name
id Set a unique value, it is useful for JavaScript or for CSS rule. For CSS it will be applied only for this tag
list-style-type For defining the item marker : "disc", "circle", "square", "decimal", "upper-roman", "lower-roman", "none"...
list-style-image It replace the item marker by an image.

Example

Preview