VALUE Attribute | value Property | Internet Development Index |
Sets or retrieves the value of a list item.
Syntax
HTML <LI VALUE = sValue... > Scripting LI.value [ = sValue ]
Possible Values
sValue Integer that specifies or receives the value of the item. The property is read/write. The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.
Remarks
In an ordered list, the value is the number that precedes the list item. Changing the value will change the visual numbering of all following list items. In an unordered list, the value is initially zero. Changing the value has no visual effect on the item.
Example
This example sets each line item's value to an integer string.
<OL> <LI VALUE="1">One <LI VALUE="2">Two <LI VALUE="3">Three </OL>
Standards Information
This property is deprecated in HTML and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
LI