HTML - OL element (ordered list)

HTML - OL element (ordered list)

About

ol 1) is a element that represents an ordered list.

Ordered and unordered lists are rendered in an identical manner except that visual user agents number ordered list items.

In ordered lists, it is not possible to continue list numbering automatically from a previous list or to hide numbering of some list items.

Example

Simple

An ordered list contains 0 or more list item (li) elements.

<ol> <!-- ol = ordered list -->
    <li>First Element</li> <!-- li = list item -->
    <li>Second Element</li>
    <li>Third Element</li>
</ol>

In ordered lists, it is not possible to continue list numbering automatically from a previous list or to hide numbering of some list items. However,

Setting the number of a list item

Authors can reset the number of a list item by setting its value attribute. Numbering continues from the new value for subsequent list items.

<ol>
    <li value="30"> makes this list item number 30.</li>
    <li value="40"> makes this list item number 40.</li>
    <li> makes this list item number 41.</li>
</ol>





Discover More
CSS - Block Level (element|box)

Block-level refers to the (HTML) elements that are formatted visually as blocks. See for more information: Except for table boxes, and replaced elements, a block-level box can also be a block container...
CSS - list-item (list formatting)

This page is the formatting of element seen as a list-item. A list-item has: a principal block box (the normal box) and anadditional box known as themarker box (the marker). All properties applies...
HTML - (Flow|Body) Content

Most elements that are used in the body of documents and applications are categorized as flow content. Flow content consists of flow elements intermixed with normal character data. (ifbodhead...
HTML - Li element (list item)

li is an element that represents a single item in a. ordered: ol list or unordered: ul list This example shows a ordered list If you want to select a li list item, you need to use a child pseudo-selector...
HTML - List

A group of non-interactive list items. A list can contain: listitem, or another list HTML Unordered list: HTML ul: (Tree|Nested) Unordered list Ordered list: HTML ol element Description...
HTML - Palpable content

As a general rule, elements whose content model allows any flow content or phrasing content should have at least one node in its contents: that is palpable content (Can be manipulated ?) and that...
HTML - UL element (unordered list)

ul is an element that represents an ordered list. The difference with an ordered list is just the numeration of the list item. Unordered list items are not numbered. menu



Share this page:
Follow us:
Task Runner