Horje

How to add HTML <input> pattern Specific characters Attribute

An <input> element with type="password" that must contain 8 or more characters:

index.html
Example: HTML
<form action="/action_page.php">
  <label for="pwd">Password:</label>
  <input type="password" id="pwd" name="pwd"
  pattern=".{8,}" title="Eight or more characters">
  <input type="submit">
</form>

Output should be:

How to add HTML <input> pattern Specific characters Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin