Defines the input type. ; Use of input. The adding an attribute will automatically support and give additional features to a text field. Using the HTML element, you can collect user input and use it in scripts or databases later. HTML Input Attributes | Web Development | Lesson 19 (In Hindi/Urdu) The "type" attribute of input element can be various types, which defines information field. required: Specifies that the input field is required; disallows form submission and alerts the user if the required field is empty. password: Defines a one-line password input field. Here is a list of some common HTML Form input types. Value. The defines a field for entering a number.. Use the following attributes to specify restrictions: max - specifies the maximum value allowed; min - specifies the minimum value allowed; step - specifies the legal number intervals; value - Specifies the default value; Tip: Always add the