You are on page 1of 24

Slip 1 -1

Main.html

<html>

<title>Welcome to MIT WPU</title>

<frameset cols="50%,*">

<frame src="Img.html"/>

<frame src="Hlinks.html"/>

<frameset>

</html>

Img.html

<html>

<body>

<img src="Pic.png" alt="Error">

</body>

</html>

Hlinks.html

<html>

<body>

<ul>

<li><a href="https://mitwpu.edu.in/about-us/">About Us</li>

<li><a href="https://mitwpu.edu.in/training-and-placements/">Placements</li>

<li><a href="https://mitwpu.edu.in/departments-of-sports/">Sports</li>

</ul>

</body>

</html>
Slip 1 -2

<html>

<head>

<script language="javascript" type="text/javascript">

function Factors()

var num=document.getElementById("t1").value;

var arr=new Array(100);

var i=0;

for(j=2;j<n/2;i++)

if(n%j==0)

arr[i]=j;

i++

for(i=0;i<=n/2;j++)

document.write("Factor is: arr[i] ");

</script>

</head>

<body>

<form name="f1">

Enter Number to find its Factors:<input type="text" id="t1"><br>

<input type="Submit" value="Calculate" onclick="Factors()">


</form>

</body>

</html>

Slip 2 -1

<html>

<frameset rows="10%,*">

<frame src="Head.html">

<frameset cols="50%,*">

<frame src="City.html">

<frame name="r">

</frameset>

</frameset>

</html>

<html>

<body>

<h1>City</h1>

<ol type="1">

<a href="Pune.html" target="r"><li>Pune</li></a>

<a href="Bangalore.html" target="r"><li>Bangalore</li></a>

<a href="Hyderabad.html" target="r"><li>Hyderabad</li></a>

<a href="Delhi.html" target="r"><li>Delhi</li></a>

</ol>

</body>

</html>
<html>

<body>

<h1>PUNE</h1>

<ul>

<li>Cisco</li>

<li>NVIDIA</li>

<li>Barclays</li>

<li>Symantec</li>

</ul>

</body>

</html>

Slip 3-1

<html>

<frameset cols="50%,*">

<frame src="fleft.html" >

</frameset>

</html>

<html>

<head>

</head>

<body>

<h1> <a href="file:///C:/Users/admin/Desktop/exam/main.html">List of players:-</a></h1>


<table border=2 >

<tr>

<th >No Of games</th>

<th >List of players</th>

</tr>

<tr>

<td rowspan="3">Cricket</td>

<td > Sachin Tendulkar</td>

</tr>

<tr>

<td> Virat Kohli</td>

</tr>

<tr>

<td> Hardik Pandya</td>

</tr>

<td rowspan="3">Tennis</td>

<td > Saniya Mirza</td>

</tr>

<tr>

<td> Mahesh Bhupari</td>

</tr>

<tr>

<td> Lender Paes</td>

</tr>

</body>
</html>

<html>

<head>

</head>

<body>

<h1>List of players:-</h1>

<table border=2 >

<tr>

<th >No Of games</th>

<th >List of players</th>

</tr>

<tr>

<td rowspan="3">Cricket</td>

<td > Ben Strokes</td>

</tr>

<tr>

<td> Joe Root</td>

</tr>

<tr>

<td> Moeein Ali</td>

</tr>

<td rowspan="3">Tennis</td>

<td > Luci Ahi</td>


</tr>

<tr>

<td> Samantha Smith</td>

</tr>

<tr>

<td> Dan Evans</td>

</tr>

</body>

</html>

<html>

<head>

</head>

<body>

<h1>List of players:-</h1>

<table border=2 >

<tr>

<th >No Of games</th>

<th >List of players</th>

</tr>

<tr>

<td rowspan="3">Cricket</td>

<td > Steve Smith</td>

</tr>

<tr>
<td> David Warner</td>

</tr>

<tr>

<td> Michael Starc</td>

</tr>

<td rowspan="3">Tennis</td>

<td > Benard Tomic</td>

</tr>

<tr>

<td> Nick Kygrois</td>

</tr>

<tr>

<td> John Millman</td>

</tr>

</body>

</html>

Slip3-2

<html>

<head>

<script>

function test()

var id=document.getElementById("cstid").value;
if(id==null || id=="")

alert("Id cannot be empty");

var name=document.getElementById("cstname").value;

if(name==null || name=="")

alert("Name cannot be empty");

var mno=document.getElementById("cstmno").value;

if(mno==null || mno=="")

alert("Mobile number should be 10 digits");

var addr=document.getElementById("cstaddr").value;

if(addr==null || addr=="")

alert("Address cannot be empty");

if(mno.length<10 || mno.length>10)

alert("Mobile Number Error");

if(!isNaN(name))

alert("Name should be alphabets only");

</script>

</head>

<body>

<form name="f">

<table>

<tr>

<td>Customer Id</td>

<td><input type="text" name="cstid" id="cstid"></td>

</tr>

<tr>
<td>Customer Name</td>

<td><input type="text" name="cstname" id="cstname"></td>

</tr>

<td>Mobile No</td>

<td><input type="text" name="cstmno" id=cstmno"></td>

</tr>

<tr>

<td>Address</td>

<td><input type="text" name="cstaddr" id="cstaddr" ></td>

</tr>

<tr>

<td><input type="radio" name="rdgen" value="Male" id="Male">Male</td>

<td><input type="radio" name="rdgen" value="Female" id="Female">Female</td>

</tr>

<tr>

<td><input type="submit" value="Submit" name="Submit" onClick="test()"></td>

<td><input type="button" value="Reset" name="Submit"></td>

</tr>

</table>

</form>

</body>

</html>
Slip 4

<html>

<title>

Salary Slip

</title>

<head>

<h1 align="center">PAYSLIP</h1>

<script language="javascript" type="text/javascript" >

function payslip()

var name=document.getElementById("txtName").value;

var dept=document.getElementById("txtDept").value;

var desg=document.getElementById("txtDes").value;

var bs=parseInt(document.getElementById("txtBS").value);

var da=parseInt(document.getElementById("txtDA").value);

var hra=parseInt(document.getElementById("txtHRA").value);

var gs=bs+hra+da;

document.write("Name:"+name+"<br>"+"Department:"+dept+"<br>"+"Designation"+desg+"<br>"+"Sal
ary"+gs+"<br>");

</script>

</head>

<body>

<form name="f1">

<table>

<tr>

Enter Name:
<input type="text" name="txtName" >

</tr>

<tr>

Department:

<input type="text" name="txtDept" >

</tr>

<tr>

<td>

Designation:

<input type="text" name="txtDes" >

</td>

</tr>

<tr>

<td>

Basic Salary:

<input type="text" name="txtBS" >

</td>

</tr>

<tr>

<td>

HRA:

<input type="text" name="txtHRA" >

</td>

</tr>

<tr>

<td>

DA:

<input type="text" name="txtDA" >

</td>
</tr>

<tr>

<input type="button" value="Submit" onClick="payslip()">

</tr>

</table>

</form>

</body>

</html>

<html>

<head>

<script>

function show(){

var i, no, fact;

fact=1;

no=Number(document.getElementById("num").value);

for(i=1; i<=no; i++)

fact= fact*i;

document.getElementById("answer").value= fact;

</script>

</head>

<body>

Enter Num: <input id="num">

<button onclick="show()">Factorial</button>

<input id="answer">
</body>

</html>

Slip 5-2

<html>

<frameset rows="10%,*">

<frame src="Head1.html">

<frameset cols="50%,*">

<frame src="Course.html">

<frame name="r">

</frameset>

</frameset>

</html>

<html>

<body>

<h1 align="middle">Department of Science<h1>

</body>

</html>

<html>

<body>

<h2 align="middle">Subjects for different Semester of B.C.A(Sci.) course</h2>

<ul>

<a href="FYBCA.html" target="r"><li>F.Y.B.C.A (Sci.)</li></a>

<a href="SYBCA.html" target="r"><li>S.Y.B.C.A (Sci.)</li></a>


<a href="TYBCA.html" target="r"><li>T.Y.B.C.A (Sci.)</li></a>

</body>

</html>

<html>

<body>

<h3>F.Y.B.C.A (Sci.)</h3>

<ul>

<li>Sem I

<ul>

<li>Fundamentals of Computer</li>

<li>Basic C Programming</li>

</ul>

</li>

</ul>

<ul>

<li>Sem II

<ul>

<li>Advance C</li>

<li>DBMS</li>

</ul>

</li>

</ul>

</body>

</html>

<html>

<body>

<h3>S.Y.B.C.A (Sci.)</h3>
<ul>

<li>Sem III

<ul>

<li>.NET</li>

<li>RDBMS</li>

</ul>

</li>

</ul>

<ul>

<li>Sem IV

<ul>

<li>Windows Programming</li>

<li>Project</li>

</ul>

</li>

</ul>

</body>

</html>

Slip 6

<html>

<title>Slip 8 _ 1</title>

<body>

<img usemap="#yo" src="a.jpg" width="628" height="376"

alt="News channels in india">

<map name="yo">

<area shape="rect" coords="14,7,159,161"

href="https://aajtak.intoday.in/" alt="aj taak">


<area shape="rect" coords="21,11,160,163"

href="https://abpnews.abplive.in/" alt="abp majha">

<area shape="rect" coords="187,185,296,291"

href="https://zeenews.india.com/" alt="zee news">

<area shape="rect" coords="176,178,319,319"

href="https://www.newsnation.in/" alt="news nation">

<area shape="rect" coords="375,373,609,608"

href="https://www.indiatvnews.com/" alt="india tv">

<area shape="rect" coords="367,367,582,577"

href="http://www.indianews.com" alt="india news">

<area shape="rect" coords="370,369,576,579"

href="http://www.indianews.com" alt="india news">

</map>

</body>

</html>

Slip 7

<!DOCTYPE html>

<html>

<head>

<style>

body {

background-color: linen;

h1 {

color: maroon;

margin-left: 40px;

border-style: dotted;
font-family: "Times New Roman", Times, serif;

font-style:italic;

border-style:dashed;

</style>

</head>

<body>

<h1>This is a heading</h1>

<p>This is a paragraph</p>

</body>

</html>

<html>

<body>

<form name=f1>

Enter Text<input id = "t1" type="text" name="input"><br>

<input type="button" value="submit" onclick="capital()">

</form>

<script>

function capital()

var str=document.getElementById("t1").Value;
for (var i = 0, x = str.length; i < x; i++) {

str[i] = str[i][0].toUpperCase() + str[i].substr(1);

return str.join(" ");

</script>

</body>

</html>

Slip8

<html>

<frameset rows="30,*">

<frame>

<framset cols="40,*">

<frame name="top" src="heading.html">

<frame name="left" src="left.html">

<frame name="right" src="right.html">

</frameset>

</frameset>

</html>

<html>

<body>

<b> <p font size=100 align="center">Home Shopping</p>

</body>

</html>
<html>

<body>

<img src="download.jpg" width="200" height="200">

</body>

</html>

<html>

<body>

<b><p>Home & Kitchen appliances</p><br>

<ul>

<li>Kitchen & Dining<a href="k.html" alt="k"></li>

<li>Kitchen & Dining<a href="k.html" alt="k"></li>

<li>Kitchen & Dining<a href="k.html" alt="k"></li>

<li>Kitchen & Dining<a href="k.html" alt="k"></li>

</ul>

</body>

</html>

Slip9-1

<html>

<body>

<h1>Welcome User</h1>

<script>

var today = new Date();

var day = today.getDay();

var daylist = ["Sunday","Monday","Tuesday","Wednesday ","Thursday","Friday","Saturday"];

var hour = today.getHours();


var minute = today.getMinutes();

var second = today.getSeconds();

var prepand = (hour >= 12)? " PM ":" AM ";

hour = (hour >= 12)? hour - 12: hour;

if (hour===0 && prepand===' PM ')

if (minute===0 && second===0)

hour=12;

prepand=' Noon';

else

hour=12;

prepand=' PM';

if (hour===0 && prepand===' AM ')

if (minute===0 && second===0)

hour=12;

prepand=' Midnight';

else

hour=12;

prepand=' AM';

}
}

document.write("Current Time : "+ hour + " : " + minute + " : " + second + prepand + "<br>" + "Today is :
" + daylist[day] )

</script>

</html>

<html>

<title>Taj Mahal</title>

<body>

<img src="TM.jpg" alt="Error" style="vertical-align:middle">

<p>The Taj Mahal was commissioned by Shah Jahan in 1631, to be built in the memory of his wife
Mumtaz Mahal, a Persian princess who died on 17 June that year, giving birth to their 14th child,
Gauhara Begum.

Construction started in 1632,and the mausoleum was completed in 1643, while the surrounding
buildings and garden were finished five years later.

The imperial court documenting Shah Jahan's grief after the death of Mumtaz Mahal illustrates the love
story held as the inspiration for the Taj Mahal

</p>

</body>

</html>

Slip 10

<HTML>

<HEAD>

<TITLE> Calendar </TITLE>

</HEAD>

<BODY>

<TABLE Cellpadding=”10?>
<CAPTION><H1>Septamber 2010</H1></CAPTION>

<TR>

<TH><font color=”red”>SUN</TH><TH>MON</TH><TH>TUS</TH>

<TH>WED</TH><TH>THU</TH><TH>FRI</TH><TH>SAT</TH>

<TR>

<TR>

<TH> </TH><TH> </TH><TH> </TH><TH>1</TH>

<TH>2</TH><TH>3</TH><TH>4</TH>

<TR>

<TR>

<TH><font color=”red”><b>5</TH><TH>6</TH><TH>7</TH>

<TH>8</TH><TH>9</TH><TH>10</TH><TH>11</TH>

<TR>

<TR>

<TH><font color=”red”><b>12</TH><TH>13</TH><TH>14</TH>

<TH>16</TH><TH>17</TH><TH>18</TH><TH>19</TH>

<TR>

<TR>

<TH><font color=”red”><b>20</TH><TH>21</TH><TH>22</TH>

<TH>23</TH><TH>24</TH><TH>25</TH><TH>26</TH>

<TR>

<TR>

<TH><font color=”red”><b>27</TH><TH>28</TH><TH>29</TH>

<TH>30</TH><TH> </TH><TH> </TH><TH> </TH>


<TR>

</TABLE>

</BODY>

</HTML>

You might also like