Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML ol definition

Browser supportInfo
IEFFOpSafVersionDepr.
FullFullFullPartialHTML 2.0False

Type: block-level element

Syntax

<ol> ... </ol>

Description

Defines an ordered list. The difference between unordered lists and ordered lists are that ordered lists are numbered.

Attributes

Attribute Description
type = style-information Deprecated. Sets the style of the list.
start = number Specifies the starting number of the list.
compact Deprecated. Renders the list in a more compact way.

Common attributes.

Example

[Try this example yourself]
<ol start=3>
  <li>Item 1</li>
  <li>Item 2</li>
</ol>

Output

  1. Item 1
  2. Item 2
  • Comments

No comments added.