Skip to content

Commit 89d819a

Browse files
committed
Add minimum length to name input
1 parent f02f992 commit 89d819a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<body>
77
<h1>HTML Form Validation</h1>
88
<form>
9-
Name: <input type="text" name="name" required><br>
9+
Name: <input type="text" name="name" minlength="2" required><br>
1010
Date: <input type="text" name="date" pattern="\d{2}/\d{2}/\d{4}" required><br>
1111
Email: <input type="text" name="email" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$" required><br>
1212
Website: <input type="text" name="website" pattern="(https?://)?[a-zA-Z0-9.-]+\.[a-zA-Z]{2,3}(\/[^\s]*)?" required><br>

0 commit comments

Comments
 (0)