Easy Tutorial
❮ Jsref Multiline Regexp Prop Style Liststyleposition ❯

HTML DOM Li Object


Li Object

The Li object represents an HTML <li> element.

Accessing Li Object

You can use getElementById() to access an <li> element:

Creating Li Object

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

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 standard properties and events.


Related Articles

HTML Reference: HTML <li> Tag

❮ Jsref Multiline Regexp Prop Style Liststyleposition ❯