HTML value Attribute
HTML value Attribute
The value attribute is used to specify the initial value for the button, input, and option elements.
For li elements, the value attribute sets the value of the list item i.e, the next list items will increment from that value.
For meter elements, the value attribute is used to specify the current value of the gauge.\
For progress elements, the value attribute is used to specify how much of the task has been completed.
For param elements, the value attribute is used to specify the value of the parameter.
Used With:-
Elements | Attribute |
---|---|
button | value |
input | value |
meter | value |
li | value |
option | value |
progress | value |
param | value |
Syntax:-
Its syntax is:- < element value="any_value" >