Show hint in HTML 5 text fields

To have your text input field pre-filled in with some text that disappears as soon as the user selects it, use the attribute placeholder:

<input type="text" placeholder="User name here">

This will only work in recent browsers Show archive.org snapshot (IE >= 10, FF >= 4, Chrome >= 4, Safari >= 5, Opera >= 11.6).

Dominik Schöler