Professional Documents
Culture Documents
Output:
2
<html>
<h1>Develop a HTML document to establish a
link from one web page to another web page by using <A HREF>
tag.</h1>
<h1>Hyperlink </h1>
<a href ="list.html">Click here</a>
</a>
</html>
3
<html>
<h1>Develop a HTML document to create two different tables by using
TABLE tag with its all attributes, with border
here one table contains border and another without border<h1>
</tr>
<tr>
<td >0</td>
<td>X</td>
<td e>0</td>
4
</tr>
<tr>
<td>X</td>
<td >0</td>
<td>X</td>
</tr>
</table>
</html>
5
<html>
<h1>Develop a HTML document to create un-ordered lists by using
different types of ordering, namely, Disc bullets list,
Circle bullets list, and Square bullets list.</h1>
<ol type="a">
<li > Windows 98
<li > Windows 2000
<li > Windows XP
<li >Window 7
</ol>
<br>
<ol type="A">
<li > Windows 98
<li > Windows 2000
<li > Windows XP
<li >Window 7
</ol>
<br>
<ol type="I">
<li > Windows 98
<li > Windows 2000
<li > Windows XP
<li >Window 7
</ol><br>
<ol >
<li > Windows 98
<li > Windows 2000
<li > Windows XP
<li >Window 7
</ol><br>
<ol type ="i" >
<li > Windows 98
<li > Windows 2000
<li > Windows XP
<li >Window 7
</ol>
6
</html>
7
<html>
<h1> To create an ADMISSION FORM of a college, which contains
Students
all information with predefined course list. Use Drop-down list with
a pre-selected value for COURSE selection like, BA, B.Sc., B.C.A.,
B.Com.
</h1>
<form name="msc" >
<table border=0 cellspacing=50>
<tr>
<td>Name</td>
<td><input type="text" name ="t1"></td></tr>
<tr>
<td> Father Name</td>
<td><input type="textarea" name ="t2"></td></tr>
<tr>
<td> Adderess </td>
<td><input type="text" name ="t3"></td></tr>
<tr>
<td> courses</td>
<td><select name="BA">
<option value=1>B.Sc
<option value=2>B.A
<option value=3>B.Com
<option value=3>B.C.A
</option>
</select></td></tr>
<tr>
<td> Gender Name</td>
<td> Male</td>
<td><input type="radio" name ="t5" ></td>
<td> Female</td>
<td><input type="radio" name ="t5" ></td></tr>
<tr>
<td><input type="Submit" name ="t5" ></td>
<td><input type="reset" name ="t5" ></td></tr>
</table>
</form>
</html>
8
9
CSS
1. Develop a CSS based HTML document to perform or set the background
color of a webpage.
<html>
<h1>change background color of web page</h1>
<p style=
"
height:100%;
width:100%;
background-color:Blue;
">
This is paragraph1 text
</p>
</html>
10
<html>
<h1>change image as background using css</h1>
<p style=
"
height:100%;
width:100%;
background-image:url(r.bmp);
">
M.Sc IV Students
</p>
</html>
11
<html>
<h1>To decorate the text within webpage
using the CSS attributes Overline, Line-through and Underline.</h1>
<p style= "
text-decoration:Overline;">
This is Heading 1 text
</p>
<p style= "
text-decoration:line-through;">
This is Heading 1 text
</p>
<p style= "
text-decoration:Underline;">
This is Heading 1 text
</p>
</html>
14
<html>
</h1>Develop a CSS based HTML document to create a table with specified
height and width, along with table border color.</h1>
<head>
<style>
table {
border: 11px solid blue;
}
td,th {
border: 1px solid orange;
}
</style>
</head>
<body>
</body>
</html>
15
16
JavaScript
1. Write a JAVA Script program to find the sum of “N” natural numbers.
(Use user defined function).
<html>
<h1><b><u>
To find the sum of “N” natural numbers. (Use user defined
function).
(Use user-defined function
</u></b></h1>
<label>Enter a number N
<input type="text" id="t" >
<br>
<label>Sum of Natural
<input type="text" id="t1" >
<input type="button" value="ok" onclick=nat()>
<script language="javascript">
function nat()
{
var a,d;
var s=0;
a=parseInt(t.value);
for(i=1;i<=a;i++)
{
s=parseInt(s+i);
}
t1.value=s;
}
</script>
</html>
17
18
2. Write a JAVA Script program to display the present DAY of the week
using “SWITCH” case.
<html>
<h1>To display the present DAY of the week using “SWITCH” case.Write a
JavaScript program to display the present DAY of the week using
"SWITCH" case</h1>
<script language="javascript">
var mydate=new Date();
var day=mydate.getDay();
switch(day)
{
case 0:
alert("TODAY IS SUNDAY");
break;
case 1:
alert("TODAY IS MONDAY");
break;
case 2:
alert("TODAY IS TUESDAY");
break;
case 3:
alert("TODAY IS WEDNESDAY");
break;
case 4:
alert("TODAY IS THURSDAY");
break;
case 5:
alert("TODAY IS FRIDAY");
break;
case 6:
alert("TODAY IS SATURDAY");
break;
}
</script>
</html>
19
20
<html>
<h1> To create a form for Student information, which contain fields as,
name, father name, different subjects mark. Find the Total Marks,
Average, Result and Grade for that information.</h1><br><br>
<label>Enter Regno
<input type="text" id="t1"><br><br><br>
<label>Enter Name
<input type="text" id="t2"><br><br><br>
<label>Class
<input type="text" id="t3"><br><br><br>
<label> Sub1
<input type="text" id="t4"><br><br>
<label> Sub2
<input type="text" id="t5"><br><br>
<label> Sub3
<input type="text" id="t6"><br><br><br>
<label>Total Marks
<input type="text" id="t7"><br><br><br>
<label>Average Marks
<input type="text" id="t8"><br><br><br>
<label>Grade of Students
<input type="text" id="t9">
<input type="button" value="click" onclick="show()">
</html>
<script language="javascript">
function show()
{
var regno,n,m1,m2,m3;
regno=t1.value;
n=t2.value;
cla=t3.value
m1=parseInt(t4.value);
m2=parseInt(t5.value);
m3=parseInt(t6.value);
tot1=m1+m2+m3;
avg1=parseFloat(tot1/3);
t7.value=parseInt(tot1);
t8.value=parseFloat(avg1);
21
<html>
<title>factorial</title>
<script language="javascript">
var fact=1,num,i;
num=prompt("enter the number");
for(i=1;i<=num;i++)
{
fact=fact*i;
}
document.write("fact=" +fact);
</script>
</html>
23
<html>
<h1>
To illustrate alert box, confirm alert box and prompt box.
</h1>
<input type="button" value="ALERT" onclick="a()">
<input type="button" value="CONFIRM" onclick="c()">
<input type="button" value="PROMPT" onclick="p()">
<script language="javascript">
24
function a()
{
alert ("This is a ALERT Message Box");
}
function c()
{
confirm ("This is a CONFIRM Message Box");
}
function p()
{
var a=prompt ("This is a PROMPT Message Box");
alert("U R Entered in a prompt box is="+a)
}
</script>
</html>