YouTip LogoYouTip

Dom Obj Li

# HTML DOM Li Object * * * ## Li Object The Li object represents an HTML `
  • ` element. ### Accessing the Li Object You can use `getElementById()` to access the `
  • ` element: ```javascript var x = document.getElementById("myLi"); (#) ### Creating a Li Object You can use the `document.createElement()` method to create an `
  • ` element: ```javascript var x = document.createElement("LI"); (#) ## Li Object Properties | Property | Description | | --- | --- | | (#) | Sets or returns the value of the value attribute of a list item. | ## Standard Properties and Events The Li object also supports standard (#) and (#). * * * ## Related Articles HTML Reference: [HTML `
  • ` Tag](#)
  • ← Prop Li ValueProp Legend Form β†’