Home » HTML » Html miscellaneous » Question
  1. The major difference between minlength and min attribute is ______.
    1. ‘minlength’ is for the minimum value and ‘min’ is for the minimum number of characters
    2. ‘minlength’ is for single value and ‘minlength’ is for multiple values
    3. ‘minlength’ is for the minimum number of characters and ‘min’ is for the minimum value
    4. ‘minlength’ is for multiple values and ‘min’ is for the single value
    5. None of these
Correct Option: C

minlength attribute use with <input>, <textarea> elements and it defines minimum number of character allowed. Min is used with <input>, <meter> elements and indicates minimum value allowed in element.



Your comments will be displayed only after manual approval.