An <input> element with a minimum length of 8 characters:
The minlength
attribute specifies the minimum number of characters required in an input field.
Note: The minlength
attribute can be used with input type: text, search, url, tel, email, and password.
The numbers in the table specify the first browser version that fully supports the attribute.
<input minlength="number">
Value | Description |
---|---|
number | The minimum number of characters required in an <input> element |
Example:
HTML
<input type="password" id="password" name="password" minlength="8">
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |