WebFile
WebFile
WebFile
-:01
Objective: Design the static web pages required for an online book store web
site
Code:
home.html:
<frameset rows="40%,*">
<frameset cols="15%,*">
</frameset>
</frameset>
top.html:
<html>
<head>
<title>Top Frame</title>
</head>
<center>
</font>
</marquee> <br>
<font face="Brush Script" size="6" color="white"><b>Created & Maintained
By
AKGEC</b></font>
</center>
<br>
<tr align="center">
color="navy">LOGIN</a> </td>
</tr>
</table>
</body>
</html>
left.html:
<html>
</body>
</html>
right.html:
<html>
<body bgcolor="orange">
<center>
</center>
</body>
</html>
cse.html:
<html>
<head><title>CSE</title></head>
<body bgcolor="cyan">
<br>
<table align="center">
<tr>
<td>Text Books</td>
<td>
<select >
<option value="C&Ds">C&Ds
<option value="Ads">Ads
<option value="Java">Java
<option value="Oracle">Oracle
<option value="MySql">MySql
</select>
</td></tr>
<tr>
<td>Quantity</td>
</tr>
<tr>
<td></td>
<td>
</form>
</td>
</tr>
</table>
<center>
</center>
</body>
</html>
ece.html:
<html>
<body bgcolor="Plum">
<h2>
<ul>
</ul>
</h2>
</body>
</html>
eee.html:
<html>
<body bgcolor="Plum">
<h2>
<ul type="square">
<li>Concepts in Electric Circuits</li>
<li>Electrical Power</li>
</ul>
</h2>
</body>
</html>
mech.html:
<html>
<body bgcolor="Plum">
<h2>
<ol type="I">
<li>Theory of Machines</li>
</ol>
</h2>
</body>
</html>
catalogue.html:
<html>
<head>
</head>
<body bgcolor="pink">
<form action="order.html">
<tr>
<td>
</td>
<td> Book: Web Technologies <br> Author: Uttam K. Roy <br> Publication:Oxford
<tr>
<td> Book: PHP & MySQL Web Development <br> Author:Luke Welling & Laura
</table> </form>
</body> </html>
login.html:
<html>
<body bg color="pink">
<center>
</font>
</center>
<tr><td><b>Login ID:</b></td>
</tr>
<tr>
<td><b>Password:</b></td>
</tr>
<tr align="center">
</tr>
Registration.html:
<html>
<head><title>Registration Form</title></head>
<body bgcolor="#E4F0F8">
<form action="right.html">
order.html:
<html>
<head><title>order conformation</title></head>
<body bgcolor="cyan">
<center>
<pre><strong>
</strong></pre>
</center>
</body>
</html>
Output:
Program No.-:02
<html>
<body bg color="pink">
<center>
</font>
</center>
<tr><td><b>Login ID:</b></td>
</tr>
<tr>
<td><b>Password:</b></td>
</tr>
<tr align="center">
Output-:
Program No.-: 03
Objective-: Design
Catalogue Page which should contain details of
author, book publisher and price of books and provide add to cart
option in catalogue section.
Code-:
<html>
<head>
</head>
<body bgcolor="pink">
<form action="order.html">
<tr>
<td>
</td>
<td> Book: Web Technologies <br> Author: Uttam K. Roy <br> Publication:Oxford
<tr>
<td> Book: PHP & MySQL Web Development <br> Author:Luke Welling & Laura
Output-:
Program No.-:04
Objective-: Design Cart Page which should contain the details of added books in
cart.
Code-:
Cart.html
cse.html:
<html>
<head><title>CSE</title></head>
<body bgcolor="cyan">
<br>
<table align="center">
<tr>
<td>Text Books</td>
<td>
<select >
<option value="C&Ds">C&Ds
<option value="Ads">Ads
<option value="Java">Java
<option value="Oracle">Oracle
<option value="MySql">MySql
</select>
</td></tr>
<tr>
<td>Quantity</td>
<tr>
<td></td>
<td>
</form>
</td>
</tr>
</table>
<center>
</center>
</body>
</html>
ece.html:
<html>
<body bgcolor="Plum">
<h2>
<ul>
</ul>
</h2>
</body>
</html>
eee.html:
<html>
<body bgcolor="Plum">
<h2>
<ul type="square">
<li>Electrical Power</li>
</ul>
</h2>
</body>
</html>
mech.html:
<html>
<body bgcolor="Plum">
<h2>
<ol type="I">
<li>Theory of Machines</li>
</ol>
</h2>
</body></html>
Output-:
Program No.-: 05
Objective-: Design the registration page which should contain field of Name,
Password, E-Mail, Phone Number, Gender, and Address.
Code-:
Registration.html:
<html>
<head><title>Registration Form</title></head>
<body bgcolor="#E4F0F8">
<form action="right.html">
Output-:
Program No.-: 06
Objective-: Design the registration page and validate name and password field with java
script
a. Name: (Name should contain alphabets and the length should not be less than 6
characters).
b. Password (Password should not be less than 6 characters length).
Code-:
<html>
<body bgcolor="#E4F0F8">
<script type='text/javascript'>
function formValidator()
if(lengthRestriction(firstname, 6)){
if(lengthRestriction(pass, 6)){
if(lengthRestriction1(mobileno, 10 , 10)){
return true;
}}}}
}}}
return false;
if(elem.value.length == 0){
alert(helperMsg);
return false;
return true;
if(elem.value.match(numericExpression)){
return true;
}else{
alert(helperMsg);
elem.focus();
return false;
return true;
}else{
alert(helperMsg);
elem.focus();
return false;
if(elem.value.match(alphaExp)){
return true;
}else{
alert(helperMsg);
elem.focus();
return false;
return true;
}else{
elem.focus();
return false;
if(elem.value.match(emailExp))
else{
return true;
alert(helperMsg);
elem.focus();
return false;
else {
return true;
elem.focus();
return false;
</script>
</form>
</body>
</html>
Output-:
Program No.-: 07
Objective-: Design the registration page and validate email id and phone number
field with java script
a. E-Mail Id (should not contain any invalid and must follow the standard
pattern name@domain.com).
b. Phone Number (Phone number should contain 10 digits only).
Code-:
<html>
<body bgcolor="#E4F0F8">
<script type='text/javascript'>
function formValidator()
if(lengthRestriction(firstname, 6)){
if(lengthRestriction(pass, 6)){
if(lengthRestriction1(mobileno, 10 , 10)){
return true;
}}}}
}}}
return false;
if(elem.value.length == 0){
alert(helperMsg);
return false;
return true;
if(elem.value.match(numericExpression)){
return true;
}else{
alert(helperMsg);
elem.focus();
return false;
if(elem.value.match(alphaExp)){
return true;
}else{
alert(helperMsg);
elem.focus();
return false;
if(elem.value.match(alphaExp)){
return true;
}else{
alert(helperMsg);
elem.focus();
return false;
return true;
}else{
return false;
if(elem.value.match(emailExp))
else{
return true;
alert(helperMsg);
elem.focus();
return false;
else {
return true;
elem.focus();
return false;
</script>
</form>
</body>
</html>
Output-: