HTML DOM Ul Object

Ul Object

The Ul object speaks to a HTML <ul> element.

Access a Ul Object

You can get to a <ul> component by utilizing getElementById():

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

Create a Ul Object

You can make a <ul> component by utilizing the document.createElement() method:

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

Ul Object Properties

Property Description
compact Not upheld in HTML5. Use style.lineHeight instead.
Sets or returns whether the unordered rundown should render littler than ordinary, or not
type Not bolstered in HTML5. Use style.listStyleType instead.
Sets or returns the estimation of the sort quality of an unordered list