0
Is it possible to use the value attribute and the placeholder attribute in an html input?
2 Answers
+ 6
Yes, you can use both. The placeholder is shown only when the value is empty, but it can still make sense if the user actually deletes the text that was initially provided as value.
Also, you can easily try this in the code playground. Feel free to experiment with it at your leisure!
+ 2
Yup!