Read more

Show hint in HTML 5 text fields

Dominik Schöler
June 20, 2012Software engineer at makandra GmbH

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">
Illustration money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
Read more Show archive.org snapshot

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

Posted by Dominik Schöler to makandra dev (2012-06-20 16:37)