Web Eng. Lab2 PDF
Web Eng. Lab2 PDF
LAB#2
Name:Ahmed Kamal
Section: A
Roll no: 2018-SE-264
2018-SE-264
SWE315 Web Engineering Lab BSSE-FA20-6A
LAB#2
LAB NO.2
JavaScript Forms and Validation
LAB TASKS
1.Create a simple Registration Form for Admission in SSUET also validate it .Also apply
CSS where necessary.
SOLUTION:
CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Form</title>
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<style>
@media screen and (max-width: 740px){
.login-area,
.delete-area,
.signup-area{
width: 100%;
}
2018-SE-264
SWE315 Web Engineering Lab BSSE-FA20-6A
LAB#2
}
</style>
</head>
<body>
2018-SE-264
SWE315 Web Engineering Lab BSSE-FA20-6A
LAB#2
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="signup-area">
<h1 class="display-3 login-heading">Sign Up</h1>
<hr class="my-4">
<form action="" method="POST">
<label for="username">Username</label>
<input type="text" name="username" id="username" class="form-control"
placeholder="Enter Username" required><br>
<label for="password">Password</label>
<input type="password" name="password" id="password" class="form-control"
placeholder="Enter Password" required><br>
<label for="email">Email Address</label>
<input type="text" name="email" id="email" class="form-control"
placeholder="Enter Email Address" required><br>
<label for="age">Age</label>
<input type="text" name="age" id="age" class="form-control" placeholder="Enter
Age"><br>
<label for="contact">Contact</label>
<input type="text" name="contact" id="contact" class="form-control"
placeholder="Enter Contact" required><br>
<input type="submit" name="signup" value="Sign Up" class="btn
btn-outline-primary">
</form>
</div>
2018-SE-264
SWE315 Web Engineering Lab BSSE-FA20-6A
LAB#2
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHND
z0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
</body>
</html>
2018-SE-264
SWE315 Web Engineering Lab BSSE-FA20-6A
LAB#2
OUTPUT:
VALIDATION:
2018-SE-264
SWE315 Web Engineering Lab BSSE-FA20-6A
LAB#2
2018-SE-264