Example
Example
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<title>Form Validation</title>
5
</head>
6
<body>
7
8
<h2>Create Your Account</h2>
9
<form action="/register" method="post">
10
<p>
11
<label for="uname">Full Name (Required, 3-20 chars):</label><br>
12
<input type="text" id="uname" name="fullname" required minlength="3" maxlength="20">
13
</p>
14
<button type="submit">Submit Registration</button>
15
</form>
16
17
</body>
18
</html>
