Programming Tips - How can I have an in-place prompt for an input type=text field

Date: 2014jun26 Language: html Keywords: inplace Q. How can I have an in-place prompt for an <input type=text> field as you see on phones? A. Use placeholder= for example:
<input name="surname" placeholder="Your last name">