0

Please, what is the difference between value and placeholder attribute, when using input tag in a form tag.

Input attribute(value and placeholder ).

23rd Apr 2021, 6:09 PM
Def Dave
Def Dave - avatar
1 Respuesta
+ 2
The value is what's in the input. That is what you can use in the backend when the form gets submitted. The placeholder is not useful in the backend. It's just a hint to the user as to what kind of information is required to be entered - what kind of information is required as the value.
23rd Apr 2021, 6:17 PM
CamelBeatsSnake
CamelBeatsSnake - avatar