+ 5
What is "value" in "<input>" tag?
i dont know why do we need "value" tag. even uf we delete it nothing will change.
1 Answer
+ 8
The value attribute allows you to set a default value for your input tag. Itâs not necessary to have the value attribute, itâs only when you need it.
Itâs also the attribute referenced by JavaScript to change the value of input tags.
Hope it helped.