HTML DOM Ul Obheto

Ul object

Ul object represents the HTML <ul> element.

Access Ul object

You can use getElementById() to access the <ul> element:

var x = document.getElementById("myUL");

Try it yourself

Create Ul object

You can use the document.createElement() method to create a <ul> element:

var x = document.createElement("UL");

Try it yourself

Ul object attribute

Properties Description
compact

Not supported in HTML5.Please use style.lineHeight.

Set or return whether the unordered list should be presented smaller than normal.

type

Not supported in HTML5.Please use style.listStyleType.

Set or return the type attribute value of the unordered list.

Standard Properties and Events

Ul Obheto Supports StandardsPropertiesAtEvents.

Related Pages

HTML Tutorial:HTML Listahan

HTML Reference Manual:HTML <ul> Tag