Basically two parts of the question.
- How to put explanatory text inside textboxes in a form (like writing e-mail in the text area of a text box in a form) with styles (i.e. greyed out so that meant to suggest) like on facebook homepage.
- How to put cursor focus on a particular form-field as soon as the page loads (like google sign-in or facebook sign-in)
Is there javascript involved in any of the above procedures? if yes, please specify
- a non-javascript workaround and/or
- the javascript code doing what is needed