X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM Li Object


Li Object

The Li object represents an HTML <li> element.

Access a Li Object

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

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

Create a Li Object

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

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

Li Object Properties

Property Description
value Sets or returns the value of the value attribute of a list item

Standard Properties and Events

The Li object also supports the standard properties and events.


Related Pages

HTML reference: HTML <li> 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