Professional Documents
Culture Documents
DESIGNING
HTML
1.
Code for order and unorder list
2.
Code for image. as hyperlinks
3.
Code for simple table
4.
Code for complex table
5.
Demonstration of font tag
6.
Distribution of page in two
vertical parts
7.
Distribution of page in two
horizontal parts
8.
Demonstration of nested if
9.
Demonstration of marquee tag
10. Code for log-in form
11. Code for admission form
12. Code for targeted frameset
VB SCRIPT
1.
2.
3.
ASP
<html>
<head><title>list</title></head>
<body>
<ol type="A">
<li> Science
<li> Biology
<li>Maths
<li>Physics
<li>Chemistry
</ol>
<ul type="disc">
<li>Commerce
<li>Accounts
<li>Maths
<li>OC
<li>SP
</ul>
</body>
</html>
<head><title>simple table</title></head>
<body>
<table border="5">
<tr><th>Roll
no.<th>Name<th>House<th>Marks</tr>
<tr><td>01<td>AA<td>Red<td>92</tr>
<tr><td>02<td>BB<td>Green<td>89</tr>
<tr><td>03<td>CC<td>Yellow<td>73</tr>
<tr><td>04<td>DD<td>blue<td>95</tr>
<tr><td>05<td>EE<td>Red<td>75</tr>
</table>
</body>
</html>
<head><title>Complex Table</title></head>
<body>
<table border="5" align="center">
<tr><th colspan="5">MARKSHEET</tr>
<tr><th rowspan="2">Roll no.<th rowspan
="2">Name<th colspan="3">Marks</tr>
<tr> <th>theory<th>practical<th>total</tr>
<tr><td>01<td>AA<td>50<td>25<td>75</tr>
<tr><td>02<td>BB<td>60<td>29<td>89</tr>
<tr><td>03<td>CC<td>55<td>25<td>80</tr>
</table>
</body>
</html>
<head><title>font tag</title></head>
<body>
<font size="2" face="Arial" color="Green">
Hello Friends!!!
</font><br>
<font size="3" face="Times New Roman"
color="Red">
Hello Friends!!!
</font>
</body>
</html>
<html>
<head><title>form</title></head>
<body>
<form name = F1>
User name<input type ="text" name="t1"><br>
E-mail<input type ="hyperlink" name="h1"><br>
Password<input type ="password"
name="p1"><br>
<input type ="submit" name="s1" value="log in">
<input type ="reset" name="r1" value="cancel">
</form>
</body>
</html>
<head><title>form</title></head>
<body align="center">
<form name = F1>
First Name:<input type="text"><name ="t1"><br>
Middle Name:<input type="text"><name="t2"><br>
Last Name:<input type="text"><name ="t3"><br>
Address:<input type="text"><name ="t4"><br>
Phone No:.<input type="text"><name ="t5"><br>
Last year %:<input
type="number"><name="n1"><br>
Gender:<input type="radio"><name ="r1">Male
<input type="radio"><name
="r1">Female<br>
Course:<input type="checkbox"><name ="c1">Medical
<input type="checkbox"><name
="c1">Engineering<br>
<input type="checkbox"><name
="c1">Designing
<input type="checkbox"><name
="c1">Buisness<br>
<input type="submit" name ="s1">
<input type="reset" name ="s2">
</form>
</body>
</html>
TARGETED FRAMESET
<html>
<head><title>link</title></head>
<body>
<a href ="p1.html" target ="R1">p1</a><br>
<a href ="p2.html" target ="R2">p2</a><br>
<a href ="p3.html" target ="R3">p3</a>
</body>
</html>
<html>
<head></head>
<body>
<script language =" VB script">
document.write ("HELLO FRIENDS")
</script>
</body>
</html>
<html>
<body>
<script language =" VB script">
dim a,b
a=10
b=20
b=a+b
a=b-a
b=b-a
document.write ("after swaping a= " &a & "b= " &b)
</script>
</body>
</html>
Print 10 to 1
<html>
<body>
<script language =" VB script">
dim x = 1
while x <= 10
document.write ("<br>" & x )
x = x+1
wend
</script>
</body>
</html>
<html>
<body>
<script language=" VB script">
dim x = 1, s = 0
while x <= 50
s = s+x
x = x+2
wend
document.write("sum = " & s)
</script>
</body>
</html>
<body>
<script language =" VB script">
dim x = 2, s = 0
while x <= 50
s = s+x
x = x+2
wend
document.write ( " sum = " & s)
</script>
</body>
</html>
dim x(4) , i
for i= 0 to 4
x(i) = inputbox ("enter the number")
next
document.write (" following are the array elements")
for i = 0 to 4
document.write ("<br>" & x(i) )
next
</script>
</body>
</html>
for i = 0 to 4
x(i) = inputbox (" enter the number")
next
for i = 0 to 4
document.write ("<br>" & x(i) )
next
document.write ( "sum = " & s)
</script>
</body>
</html>
step -1
i,j
for i = 0 to no
f=fxi,
next
document.write (" factorial = " & f)
</script>
</body>
</html>