HTML <li> value attribute
HTML <li> tag
Example
Use of the value attribute in an ordered HTML list:
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
<li value="100">Water</li>
<li>Juice</li>
<li>Beer</li>
</ol>
|
Try it yourself!
|
Definition and Usage
The value attribute sets the number of a list item. The following list items
will increment from that number.
Browser Support

The value attribute is deprecated, but still supported in all major browsers.
Compatibility Notes
The value attribute of the li element was deprecated in HTML 4.01,
and is not supported in XHTML 1.0 Strict DTD.
Note: At the moment, there is no CSS alternative for the value
attribute.
Syntax
Attribute Values
Value |
Description |
number |
The number of the current list item |
HTML <li> tag
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|