Lists are used to record relevant information or display data or information on a web page in an ordered or unordered manner. For example, you need to create an order or no order list to buy an item, making it easier to organize your data and find things. See the HTML.
The different types of attributes you can use with ordered and unordered lists.
The unordered list starts with the "ul" tag. Each list entry begins with a "li" tag. List items are bulleted by default. H. A small black circle.
Note: HTML5 does not support the attribute.
This is used to nest list items. That is, list them in a separate list.
The ordered list starts with the "ol" tag. Each list entry begins with a "li" tag. By default, list items are numbered.
Attribute:
Compact: Specifies that the list needs to be compressed (HTML5 does not support compact attributes, use CSS instead).
Reverse: Defines the order to be descending.
Start: Defines the number or alphabet at which the order starts.
Type: Defines the Type of order (1, A, a, I, and i), number, alphabet, or Roman numeral to include in the list. The HTML ordered list has several list item markers, and the tag's type attribute defines the Type of the list item marker.
List items are numbered by default.
A description list is a list of terms containing each term's description. The tag defines a description list, the tag represents a term name, and the tag describes each term.
|