HTML CSS examples for HTML Tag:input
input pattern Attribute - An <input> element with type="password" that must contain 6 or more characters:
<!DOCTYPE html> <html> <body> <p>A form with a password field that must contain 6 or more characters:</p> <form action="/action_page.php"> Password: <input type="password" name="pw" pattern=".{6,}" title="Six or more characters"> <input type="submit"> </form><!-- w w w .ja v a 2 s. c om--> </body> </html>