Quiz Question 1 of 6
In a scenario where both minlength
and maxlength
attributes are applied to an input field, which of the following outcomes best reflects the user experience and data integrity?
Choose the correct answer below:
-
A
The input field ensures that data fits within a specified range, enhancing both user experience and data consistency by enforcing length constraints.
-
B
The input field will not allow users to input any data unless both constraints are exactly met.
-
C
The input field will always reject any data that doesn't match the exact length specified by the attributes.
-
D
The input field will display an error message only if the data exceeds the
maxlength
limit.