Professional Documents
Culture Documents
Size - The input size attribute specifies the visible width, in characters, of an input field.
Maxlength – It specifies the maximum number of characters allowed in an input field.
Required – It specifies that the input field must be filled before submitting the form. The field
should not be left blank.
Autofocus – It specifies that an input field should automatically
get focus when the page loads.
input[type=text]{background-color:grey;}
MIN AND MAX: The min and max attributes specify the minimum and
maximum values for an <input> element.
The min and max attributes work with the following input types:
number range, date, datetime-local, month, time and week
The short hint is displayed in the input field before the user
enters a value.
Example:
Example:
Example:
Example:
Example:
Example:
ANSWER:
The max and min attributes works with the following input
types: number, range, date, datetime, month, time and
week.
https://www.w3schools.com/html/html_form_elements.asp
https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Your_first_HT
ML_form
https://www.tutorialspoint.com/html/html_forms.htm
https://marksheet.io/html-forms.html