The <input> Tag in HTML 5

The <input> tag is used to create an interactive control in an HTML form. For example, <input type="text"> creates a single-line text input field. For multiple lines of text input, use the <textarea> tag instead.

Login credentials
Contact information
 

This is an actual working demo of the <input> example code below.

Since autofocus automatically positions the cursor to the input field, the placeholder text for the Username field will not appear unless you tab to the masked password field or click elsewhere. If your browser does not support the HTML 5 placeholder attribute, none of the placeholders will appear.

Note: The first browser where placeholder text in form input fields actually works is Chrome. It may not work yet in other browsers.