WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Li Object


Li Object

The Li object speaks to a HTML <li> element.

Access a Li Object

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

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

Create a Li Object

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

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

Li Object Properties

Property Description
value Sets or returns the estimation of the esteem characteristic of a rundown item

Standard Properties and Events

The Li object additionally underpins the standard properties and events.


Related Pages

HTML reference: HTML <li> tag