HTML Input Attributes

The value Attribute

The input value attribute specifies an initial value for an input field:

Output:

The readonly Attribute:

Output:

The disabled Attribute

Output:

The input list attribute refers to a <datalist> element that contains pre-defined options for an <input> element.

Output:

The autocomplete attribute works with <form> and the following <input> types: text, search, url, tel, email, password, datepickers, range, and color.

Output: