You are on page 1of 2

Program 5

Create login page with validation.

<html>
<he ad
<title>Form Login Validation
<hitle>
<headb
<body>
<h2>LoginK/h2>
<form method="post'>
<label for="'username">
Username
<input type="text" name="Username" placeholder="Username must contain 8 to 20
characters"
pattem="la-zA-Z][a-zA-Z0-9-]{7,19)S" required="REQUIRED" />
<label>
<label for="password'>
Password:
<input type="password" name="pass word" id="password" placeholder="Password must
contain 1 uppercase, lowercase and number and more than 8 characters"
pattem=?=^{8,)$)((?=*\d)(?=."W+)(?Y\n])(?=*[A-Z]M(?=*[a-z]).*$"
required="required" >
<label>
<br>cbr>
<Button type="submit"> Sign in</button>
<br>
<br>
<sup>*</sup>Usermame must contain 8 to 20 characters
<br>
<sup>*</sup>Password must contain more than 8 characters, I uppercase, lowercase and
number
</form>
</body>
</html>
C fie//cAenandarp/Desktop/Labhi20F ileWeb%20fechnology/Uploah20image htm
Select uage to poad

EC
EC9
pload ima

You might also like