HTML has three list styles: unordered, ordered, and definition. Each can be customized with HTML tags or CSS properties. Lists can be nested and include various items.
There are three basic types of HyperText Markup Language (HTML) list styles. The first is an unordered list and consists of a series of bulleted items listed vertically in sequence. The second HTML list style is an ordered list and is identical to an unordered list except that instead of a single bullet type, each of the items in the list are numbered sequentially. The third HTML list style is a definition list that lists an item, either followed on the next line or indented widely from its definition. Each HTML list style can be extensively customized via certain HTML tags, such as the type tag, or they can be customized specifically via cascading style sheet (CSS) properties.
There are certain abilities that each HTML list style shares. They can be nested within each other, which means that an ordered list can have an unordered list as a list element. A list can be customized using CSS so that everything from the spacing around each list item to the type of bullet used can be changed to fit a particular design. All HTML lists can also list almost anything as a list item or definition, including hyperlinks, images, scripts, or even graphical user interface (GUI) components such as text fields.
An unordered list is the most basic HTML list style. It’s simply an ordered list of items, with each item starting on a new line after the previous one. By default, a circular bullet is placed just before each new item, although this image can be changed to another shape or removed altogether.
An ordered list is similar in many respects to the HTML unordered list style, except that the bullets are replaced with sequential numbering. Numbers can be standard decimal, Roman numerals, letters, or a variety of other numbering systems from different languages. When ordered lists are nested, the numbering of the nested lists can be changed so that the list appears more like a traditional structured structure. Like unordered lists, starting numbers can also be disabled.
The final type of HTML list style is known as a definition list. Each item in this type of list consists of two elements: the term and the definition. The term is the word that will be defined and is the first item displayed in the list item. A definition is generally a phrase or other item that somehow explains or relates to the term. The definition can be rendered next to the term, on the same line but spaced out, or it can be rendered on the next line down and indented, which is the default behavior. A definition list can be customized with CSS properties, but does not contain an area for displaying bullets.
Protect your devices with Threat Protection by NordVPN