Example
Example
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<title>Pattern Validation</title>
5
</head>
6
<body>
7
8
<h2>Postal PIN Code Verification</h2>
9
<form>
10
<p>
11
<label for="pincode">6-Digit PIN Code:</label><br>
12
<input type="text" id="pincode" name="pin" pattern="[0-9]{6}" title="Enter exactly 6 digits" required>
13
</p>
14
<button type="submit">Verify Code</button>
15
</form>
16
17
</body>
18
</html>
