OListElement Interface
The HTML ordered list element (<ol>
) represents an ordered list of items. Typically, ordered-list items are displayed with a preceding numbering, which can be of any form, like numerals, letters or Romans numerals or even simple bullets. This numbered style is not defined in the HTML description of the page, but in its associated CSS, using the list-style-type
property.
There is no limitation to the depth and imbrication of lists defined with the <ol>
and <ul>
elements.
<ol>
and <ul>
both represent a list of items. They differ in the way that, with the <ol>
element, the order is meaningful. As a rule of thumb to determine which one to use, try changing the order of the list items; if the meaning is changed, the <ol>
element should be used, else the <ul>
is adequate.Extends
Constructors
Code new OListElement() #
OListElement();
Fields
Code bool compact #
<ol>
element should be styled using CSS. To give a similar effect than the compact attribute, the CSS property line-height
can be used with a value of 80%.bool compact;
Code bool reversed #
bool reversed;
Code int start #
<ol start="3">
. int start;
Code String type #
'a'
indicates lowercase letters,-
' A'
indicates uppercase letters, 'i'
indicates lowercase Roman numerals,'I'
indicates uppercase Roman numerals,- and
'1'
indicates numbers.
The type set is used for the entire list unless a different
type
attribute is used within an enclosed <li>
element.
list-style-type
property instead.String type;
This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.