X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM Ul Object


Ul Object

The Ul object represents an HTML <ul> element.

Access a Ul Object

You can access a <ul> element by using getElementById():

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

Create a Ul Object

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

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

Ul Object Properties

Property Description
compact Not supported in HTML5. Use style.lineHeight instead.
Sets or returns whether the unordered list should render smaller than normal, or not
type Not supported in HTML5. Use style.listStyleType instead.
Sets or returns the value of the type attribute of an unordered list

Standard Properties and Events

The Ul object supports the standard properties and events.


Related Pages

HTML tutorial: HTML Lists

HTML reference: HTML <ul> tag



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook