HTMLLIElement
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
TheHTMLLIElement interface exposes specific properties and methods (beyond those defined by regularHTMLElement interface it also has available to it by inheritance) for manipulating list elements.
In this article
Instance properties
Inherits properties from its parent,HTMLElement.
HTMLLIElement.typeDeprecatedA string representing the type of the bullets,
"disc","square"or"circle". As the standard way of defining the list type is via the CSSlist-style-typeproperty, use the CSSOM methods to set it via a script.HTMLLIElement.valueAn integer indicating the ordinal position of thelist element inside a given
<ol>. It reflects thevalueattribute of the HTML<li>element, and can be smaller than0. If the<li>element is not a child of an<ol>element, the property has no meaning.
Instance methods
No specific method; inherits methods from its parent,HTMLElement.
Specifications
| Specification |
|---|
| HTML> # htmllielement> |
Browser compatibility
See also
- The HTML element implementing this interface:
<li>