HTML DOM Li Object






<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->



HTML DOM Li Object



❮ Previous
Next ❯



Li Object


The Li object represents an HTML <li> element.


Access a Li Object


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



Example



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

Try it Yourself »

Create a Li Object


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



Example



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

Try it Yourself »

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





❮ Previous
Next ❯

Popular posts from this blog

Python Lists

Aion

JavaScript Array Iteration Methods