value attribute | value property

Sets or retrieves the value of a list item.

Syntax

HTML<element value="p" ... >
JavaScript

p = object.value

Property values

Type: Integer

the value of the item.

Standards information

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.

Examples

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>

See also

li

 

 

Build date: 10/15/2012

Show:
© 2014 Microsoft