placeholder text input html code example Example 1: placeholder text html <input placeholder="e.g. Name"> Example 2: input text hint placeholder="123-45-678"