# HTML DOM Ol Object
* * *
## Ol Object
The Ol object represents an HTML
element.
### Accessing the Ol Object
You can use getElementById() to access the element:
var x = document.getElementById("myOl"); (#)
### Creating an Ol Object
You can use the document.createElement() method to create an element:
var x = document.createElement("OL"); (#)
## Ol Object Properties
| Property | Description |
| --- | --- |
| compact | Not supported in HTML5. Use [style.lineHeight](#) instead. Sets or returns whether the list should render in a more compact style. |
| (#) | Sets or returns whether the list is ordered in descending order. |
| (#) | Sets or returns the value of the start attribute of an ordered list. |
| (#) | Sets or returns the value of the type attribute of an ordered list. |
## Standard Properties and Events
The Ol object also supports standard (#) and (#).
* * *
## Related Articles
HTML Reference: [HTML Tag](#)