You are on page 1of 23

MULTIMEDIA AND WEB

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.

Print "HELLO" using Vbsript


Addition of two numbers
Swapping of two numbers without using
third variable
4. Swapping of numbers using third
variable
5. Print 10 to 1
6. Print sum of all odd elements between 1
to
50
7. Print sum of all even number between 1
to 50
8. Print sum of digits in a given number
9. Read array of 5 elements and show it
10. Print sum of all array elements
11. Print 1-D array in reverse order
12. Represent 2-D array (3 by 3)
13. Print 2-D array in reverse order
14. Print 2-D array in inverse format
15. Demonstrate use of date function
16. Demonstrate use of math function
17. Demonstrate use of string function
18. Demonstrate function and procedure of
V.B
19. Find factorial of given number using sub
-procedure
20. Check whether the number is Armstrong

ASP

1.Print "HELLO" using ASP


2.Demonstrate use of gate method
3.Demonstrate use of application
object
4.Print sum of 1-100 using ASP
5.Demonstrate use of post method
6.Demonstrate use of add rotator
component

CODE FOR ORDER AND UNORDER LIST

<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>

CODE FOR SIMPLE TABLE


<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>

CODE FOR COMPLEX TABLE


<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>

CODE FOR FONT TAG


<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>

DISTRIBUTE PAGE INTO TWO VERTICAL


PARTS

<frameset cols ="50%,*">


</frameset>

DISTRIBUTE PAGE INTO TWO HORIZONTAL


PARTS
<frameset rows="50%,*">
</frameset>

CODE FOR LOG-IN FORM

<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>

CODE FOR ADMISSION FORM


<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>

<frameset cols ="30%,*">


<frame src ="link.html">
<frameset rows ="*,*,*">
<frame src =" " name="R1">
<frame src =" " name="R2">
<frame src =" " name="R3">
</frameset>
</frameset>

Print HELLO using Vbsrcipt

<html>
<head></head>
<body>
<script language =" VB script">
document.write ("HELLO FRIENDS")
</script>
</body>
</html>

Addition of two numbers


<html>
<body>
<script language =" VB script">
dim a,b
a=10
b=20
c=a+b
document.write ("sum= " & c)
</script>
</body>
</html>

Swapping of numbers without using 3rd


variable

<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>

Print sum of odd numbers between 1 to 50

<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>

Print sum of even numbers between 1 to


50
<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>

Print sum of digits in the given number


<html>
<body>

<script language =" VB script">


dim r, no, s = 0
no = inputbox (" enter the number")
no = cint(no)
while no > 0
r = no mod 10
s=s+r
no = no \10
wend
document.write (" sum = " & s)
</script>
</body>
</html>

Read array of five elements


<html>
<body>
<script language =" VB script">

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>

Print sum of all array elements


<html>
<body>
<script language =" VB script">
dim x, i, s = 0

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>

Print 1-D array in reverse order


<html>
<body>
<script language =" VB script">
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 = 4 to 0

step -1

document.write ("<br>" & -x(i) )


next
</script>
</body>
</html>

Represent 2-D array (3 by 3)


<html>
<body>
<script language =" VB script">
dim x( 3 , 3 )
for i = 0 to 3
for j = 0 to 3

i,j

x (i , j) = inputbox (" enter the number")


next
next
document.write (" following are the array elements")
for i = 0 to 3
j = 0 to 3
document.write ( "&nbsp , " & x(i , j) )
next
next
</script>
</body>
</html>

Find factorial of given number using subprocedure


<html>
<body>
<script language =" VB script">
dim no, i , f = i,
no = inputbox (" enter the number")
no = cint(no)

for i = 0 to no
f=fxi,
next
document.write (" factorial = " & f)
</script>
</body>
</html>

You might also like