aspxtreme

OL Element | OL Object

HTML Elements/DHTML Objects


Displays lines of text as a numbered or ordered list.

HTML Syntax

Remarks

The OL element displays an ordered, or numbered, list. The element is used with the LI element to designate the individual list items.

The default numbering style is determined by the browser, but authors can use the element's type attribute to change the list's numbering sequence and style.

This element is a block element. Both the start and end tags are required.

Members



Styles


Example

<p>To create an ordered list. </p>
<ol>
   <li>Mark the start of the list with the OL tag
 <li>Mark the beginning of each list item with 
  the LI tag
 <li>Mark the end of the ordered list.
</ol>

To create an ordered list.

  1. Mark the start of the list with the OL tag
  2. Mark the beginning of each list item with the LI tag
  3. Mark the end of the ordered list.

See Also

DIR, LI, MENU, UL, Using Lists in HTML



Books and more ...

Contents
HTML Elements / DOM Objects
HTML Element Attributes
CSS Attributes
DOM Object Properties
DOM-compliant Events Reference
DOM Methods Reference
DOM Collections Reference
 


Suggested Reading



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme