Practicle File of Web Design
Practicle File of Web Design
: 3107417
SHIVALIK INSTITUTE OF ENGG. & LABORATORY
SIET TECHNOLOGY,ALIYASPUR MANUAL
PRACTICAL EXPERIMENT INSTRUCTION SHEET
PROGRAM TITLE: DESIGN A FORM ON THE WEB PAGE HAVING AN
EMP DETAIL OF THE COMPANY
EXPERIMENT NO.: - 1 DEPTT. :- I.T. ISSUE DATE: -
LABORATORY:- WD LAB SEMESTER: -5th PAGE.NO: 1.1
Benifits<input type="checkbox"name="benifits">
daily<input type="checkbox"name="daily"><br>
grade<input type="radio" name="a">a
<input type="radio" name="b">b
deptt<select name="deptt">
<option>sales</option>
<option>accoint</option>
<option>market</option>
<option>hrd</option>
</select><br><center>
<input type="submit" name="ok" value="ok">
</body>
</html>
<html>
<head>
<meta name="generator" contents="Microsoft visual studio 6.0">
</title></title>
<style>
body(margin=left:o;margin:0;margin-top:0;margin-bottom:0;)
heading
{
font-size:15px;
font family:bookman old style;
}
subhead
{
font-size:13px;
font family:bookman old style;
}
.a
{
font-size:10px;
color:#000000;
font-family:verdana;
text-decoration::none
}
.a.hover
{
font-size:10px;
color:#6784ca;
font-family:verdana;
text-declaration:none
}
</style>
</head>
<body>
<table width=700 border=1 cellspacing=0 cellpadding=0><!--header file-->
<tr><td align="right" height=1>
<table border=0 cellspacing=5 cellpadding=5>
<tr>
<td valign=top><a class=a href="index.htm">home</a></td>
<td valign=top><a class=a href="product.htm">product</a></td>
<td valign=top><a class=a href="orders.htm">orders</a></td>
<td valign=top><a class=a href="services.htm">services</a></td>
<td valign=top><a class=a href="about us.htm">about us</a></td>
<td valign=top><a class=a href="contactus.htm">contactus</a></td>
</tr>
</table>
</td></tr>
<!-- body file-->
<tr><!--left file-->
<td align ="center" valign="top">
<table align="center" border=0 cellspacing=0 cellpadding=0 width=50%>
<tr><td align="center" colspan="3"class="heading><b><login user</b></td></tr>
<tr><td colspan="3">
<hr>
<input align="center" type="button" value="login User"></td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr>
</table>
</body>
</html>
<html>
<head>
<title>homepage</title>
</head>
<body>
<SCRIPT LANGUAGE="javascript">
document.write("<h1>Greetings ");
document.write(prompt("Enter your name:","name"));
document.write(" Welcome to my home page </h1>");
</script>
</body>
</html>
<html>
<head>
<title>Browser Information</title>
</head>
<body>
<h1> Browser InFORMATION</h1>
<HR>
<P>
The <b> navigator </b> object contains the following information
about the browser you are using .
</p>
<ul>
<script LANGUAGE="javascript"type="text/javascript">
document.write("<li><b>code name:</b>"+navigator.appcodename);
document.write("<li><b>app name:</b>"+navigator.appname);
document.write("<li><b>app version:</b>"+navigator.appversion);
document.write("<li><b>user agent:</b>"+navigator.useragent);
document.write("<li><b>language:</b>"+navigator.language);
document.write("<li><b>platform:</b>"+navigator.platform);
</script>
</ul>
<hr>
</body>
</html>
<html>
<head>
<title>web apge</title>
</head>
<frameset rows="50%,*">
<frameset cols="50%,50%">
<frame src="E:\pictures\omkara.jpg">
<frame src="C:\Documents and Settings\Himanshu\My Documents\detail.doc">
</frameset>
<frameset cols="50%,50%">
<frame src="C:\Documents and Settings\Himanshu\My Documents\syllabus.doc">
<frame src="C:\Documents and Settings\Himanshu\My Documents\Broad band\New
Folder\flower.htm">
</frameset>
</frameset>
</html>
<html>
<head> </head>
<body>
<xml id="invs">
<invoices> <invoice id="001">
<date>01-feb-2006</date>
<from>company A</from>
<to>Company B</to>
<price>123.45</price>
</invoice>
<invoice id="002">
<date>05-sep-2006</date>
<from>Company A</from>
<to>Company C</to>
<price>34.56</price>
</invoice>
</invoices>
</xml>
<table border datasrc="#invs">
<thead><tr><th>Date<th>from<th>to<th>price</tr>
</thead> </tbody>
<tr><td><span datafld="date"></span></td>
<td><span datafld="from"></span></td>
<td><span datafld="to"></span></td>
<td><span datafld="price"></span></td></tr>
</tbody> </table>
</body> </html>
<html>
<head>
<script type="text/javascript">
function convert(degree)
{
if (degree=="C")
{
F=document.getElementById("c").value * 9 / 5 + 32
document.getElementById("f").value=Math.round(F)
}
else
{
C=(document.getElementById("f").value -32) * 5 / 9
document.getElementById("c").value=Math.round(C)
}
}
</script>
</head>
<body>
<p></p><b>Insert a number into one of the input fields below:</b></p>
<form>
<input id="c" name="c" onkeyup="convert('C')"> degrees Celsius<br />
equals<br />
<input id="f" name="f" onkeyup="convert('F')"> degrees Fahrenheit
</form>
<p>Note that the <b>Math.round()</b> method is used, so that the result will be
returned as an integer.</p>
</body>
</html>
<html>
<head>
<script type="text/javascript">
function startTime()
{
var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
// add a zero in front of numbers<10
m=checkTime(m)
s=checkTime(s)
document.getElementById('txt').innerHTML=h+":"+m+":"+s
t=setTimeout('startTime()',500)
}
function checkTime(i)
{
if (i<10)
{i="0" + i}
return i
}
</script>
</head>
<body onload="startTime()">
<div id="txt"></div>
</body>
</html>
<html>
<head>
<script type="text/javascript">
function validate()
{
var at=document.getElementById("email").value.indexOf("@")
var age=document.getElementById("age").value
var fname=document.getElementById("fname").value
submitOK="true"
if (fname.length>10)
{
alert("The name must be less than 10 characters")
submitOK="false"
}
if (isNaN(age)||age<1||age>100)
{
alert("The age must be a number between 1 and 100")
submitOK="false"
}
if (at==-1)
{
alert("Not a valid e-mail!")
submitOK="false"
}
if (submitOK=="false")
{
return false
}
}
</script>
</head>
<body>
<form action="tryjs_submitpage.htm" onsubmit="return validate()">
Name (max 10 chararcters): <input type="text" id="fname" size="20"><br />
Age (from 1 to 100): <input type="text" id="age" size="20"><br />
E-mail: <input type="text" id="email" size="20"><br />
<br />
<input type="submit" value="Submit">
</form>
</body>
</html>
<body>
<form action="tryjs_submitpage.htm" onsubmit="return validate()">
Name (max 10 chararcters): <input type="text" id="fname" size="20"><br />
Age (from 1 to 100): <input type="text" id="age" size="20"><br />
E-mail: <input type="text" id="email" size="20"><br />
<br />
<input type="submit" value="Submit">
</form>
</body>
</html>
</SCRIPT>
</HEAD>
<BODY>
<CNTER>
<FORM NAME ="calculator">
<INPUT TYPE ="text" NAME="input" size="22">
<BR>
<INPUT TYPE="button" NAME="plus" VALUE=" + "
onClick="updateString(' + ')">