Represents a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. 220.127.116.11.10 The placeholder attribute
A collection of bad practices in HTML, copied from real websites.
Labels or sample text inside a form field makes it difficult for people to remember what information belongs in that field once they start data entry.
Since placeholders arrived on the scene, they have been rapidly adopted to provide hints and instructions to help users fill in forms. Whilst this sounds good, it is actually problematic due to the…
The placeholder attribute contains a surprising amount of issues that prevent it from delivering on what it promises. Let’s clarify why you need to stop using it.
<input type="text" id="username" placeholder="e.g. user21">