Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. HTMLLIElement
  4. value

HTMLLIElement: value property

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⁩.

Thevalue property of theHTMLLIElement interface indicates the ordinal position of thelist element inside a given<ol>. It can be smaller than0. If the<li> element is not a child of an<ol> element, the property has no meaning.

It reflects thevalue attribute of the corresponding<li> element. If the<li> element does not have avalue content attribute specified, then this property returns0 by default even when the element may have a default serially-assigned ordinal value when rendered.

Value

An integer.

Specifications

Specification
HTML
# dom-li-value

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp