코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>HTML input tag - pattern attribute</title> </head> <body> <form action="/examples/media/action_target.php" method="get"> 생년월일 : <input type="text" name="bday" pattern="[0-9]{6}" title="'yymmdd'와 같은 6자리 숫자"><br> <input type="submit"> </form> </body> </html>