WT Lab Programs (Prog.1 - Prog.40)
WT Lab Programs (Prog.1 - Prog.40)
-->
<html>
<head>
</head>
<body>
<H1>B.Com.(C.A.) </H1>
<H2>B.Com.(C.A.) </H2>
<H3>B.Com.(C.A.) </H3>
<H4>B.Com.(C.A.) </H4>
<H5>B.Com.(C.A.) </H5>
<H6>B.Com.(C.A.) </H6>
a<sup>2</sup>+b<sup>2</sup>+2ab <br>
x<sub>1</sub>+x<sub>2</sub>=0 <br>
</body>
</html>
<!--
B=bold
I=Italic
U=Underline
color - gave the name of the color or RGB(r,g,b) or #rrggbb Total no. of colors =16 Million colors
RGB is binary/octal numbering system and # is Hexadecimal(0-9,A-F) RGB(0,0,0) and ends with
RGB(255,255,255)
-->
<html>
<head>
</head>
<body>
</body>
</html>
<html>
<head>
<title>Header Tags</title>
</head>
<body>
<H1>B.Com.(C.A.) </H1>
<H2>B.Com.(C.A.) </H2>
<H3>B.Com.(C.A.) </H3>
<H4>B.Com.(C.A.) </H4>
<H5>B.Com.(C.A.) </H5>
<H6>B.Com.(C.A.) </H6>
</body>
</html>
<!--4. Write a HTML program to illustrate Anchor tag along with all its attributes.-->
<html>
<head>
</head>
<body>
</body>
</html>
<!--
-->
<!--5. Write a HTML program to insert Image tag with all its attributes.-->
<html>
<head>
</head>
<body>
</body>
</html>
<!--
</marquee>
-->
<!--6. Create a Web Page to display the text “ALL THE BEST" aligned with images.-->
<html>
<head>
</head>
<body>
</body>
</html>
<!--
align attribute of <img> allows the web developer to display the Text along with image using the following
alignment values:
-->
<!--7. Write a HTML program to implement Font tags along with its attributes.-->
<html>
<head>
<title>Font Tag</title>
</head>
<body>
<font color="red" size=7 face="Arial"> IIMC</font>
</body>
</html>
<!--
1. color
2. size
3. face
-->
<!-- 8. Write a HTML program to illustrate List formatting tags for the streams available in College :
<html>
<head>
</head>
<body>
<ol type="I">
<li>Desktop</li>
<li>Laptop</li>
<li>Mobile</li>
<li>Alexa</li>
</ol>
<ul type="square">
<li>Desktop</li>
<li>Laptop</li>
<li>Mobile</li>
<li>Alexa</li>
</ul>
<dl>
<dt> Internet</dt>
</dl>
</body>
</html>
<!--
<ol> means Ordered List. type is either "1" or "a" or "i" or "I" . Default is 1. It is similar to Numbering in MS-
Word.
<ul> means Unordered List . type is either "disc" or "circle" or "square". Default is disc. It is similar to Bullets in
MS-Word.
-->
<!-- 9. create a Web Page to display ordered list, unordered list on the subjects available in Fourth semester -->
<html>
<head>
</head>
<body>
<ol type="1">
<li>English</li>
<li>Second Language</li>
<li>Income Tax</li>
<li>Business Statistics-II</li>
<li>Web Technologies</li>
</ol>
<ul type="circle">
<li>English</li>
<li>Second Language</li>
<li>Leadership & Management Skills</li>
<li>Income Tax</li>
<li>Business Statistics-II</li>
<li>Web Technologies</li>
</ul>
</body>
</html>
<!--
<ol> means Ordered List. type is either "1" or "a" or "i" or "I" . Default is 1. It is similar to Numbering in MS-
Word.
<ul> means Unordered List . type is either "disc" or "circle" or "square". Default is disc. It is similar to Bullets in
MS-Word.
-->
<!-- 10. create a Table with Four rows and Four columns in HTML . -->
<html>
<head>
<title>Table Tag</title>
</head>
<body>
<table border=5>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
</table>
</body>
</html>
<!--
-->
<!-- 11. Write a HTML program to create a Time-table of your College using necessary options such as
Cellpadding, Cellspacing , colspan , rowspan . -->
<html>
<head>
<title>Timetable</title>
</head>
<body>
<tr>
<th>Day&Timing</th>
<th>9.30-10.30</th>
<th>10.30-11.30</th>
<th>11.30-12.30</th>
<th>12.30-1.00</th>
<th>1.00-1.50</th>
<th>1.50-2.40</th>
</tr>
<tr>
<th>Monday</th>
<td>WT</td>
<td>BS</td>
<td>IT</td>
<td rowspan=6>Break</td>
<td>SL</td>
<td>SEC</td>
</tr>
<tr>
<th>Tuesday</th>
<td>BS</td>
<td>English</td>
<td>IT</td>
<td>SEC</td>
<td>SL</td>
</tr>
<tr>
<th>Wednesday</th>
<td>WT</td>
<td>English</td>
<td>IT</td>
<td>BS</td>
<td>SL</td>
</tr>
<tr>
<th>Thursday</th>
<td>WT</td>
<td>BS</td>
<td>IT</td>
<td>SL</td>
<td>SEC</td>
</tr>
<tr>
<th>Friday</th>
<td>BS</td>
<td>English</td>
<td>IT</td>
<td>SEC</td>
<td>SL</td>
</tr>
<tr>
<th>Saturday</th>
<td>WT</td>
<td>English</td>
<td>IT</td>
</tr>
</table>
</body>
</html>
<!--
cellpadding provides the space between cell border and content of the cell
-->
<html>
<head>
<title>Marquee</title>
</head>
<body>
<marquee>
Web Technologies
</marquee>
</body>
</html>
<!--
</marquee>
-->
<!--13. Create a Web Page in which the text " WEB TECHNOLOGY " should scroll in different directions for four
times .-->
<html>
<head>
<title>Marquee</title>
</head>
<body>
<marquee direction=left>
WEB TECHNOLOGY
</marquee>
WEB TECHNOLOGY
</marquee>
<marquee direction=up>
WEB TECHNOLOGY
</marquee>
<marquee direction=down>
WEB TECHNOLOGY
</marquee>
</body>
</html>
<!--
<marquee> direction attribute has four values: left, right, up & down
-->
14. Create a table using all its attributes and sub tags to execute the following Information .
<html>
<head>
<title>timetable</title>
</head>
<body>
<tr>
<th>SNO</th>
<th>NAME</th>
<th>SPECIALIZATION</th>
</tr>
<tr>
<th>1</th>
<td>Ada Lovelace</td>
</tr>
<tr>
<th>2</th>
<td>Adam Osborne</td>
</tr>
<tr>
<th>3</th>
<td>Abhay Bhushan</td>
</tr>
<tr>
<th>4</th>
<td>Alan copper</td>
</tr>
<tr>
<th>5</th>
<td>Alan emtage</td>
<td>Developer of "archie"</td>
</tr>
<tr>
<th>6</th>
<td>Alan schaaf</td>
<td>Founder of imgur</td>
</tr>
<tr>
<th>7</th>
<td>Alexander Douglas</td>
</tr>
<tr>
<th>8</th>
<td>Andreas Bechtolsheim</td>
</tr>
</table>
</body>
</html>
<!--15. Create a Program on the concept of Form containing Textboxes, Radio Buttons and Checkboxes-->
<html>
<head>
</head>
<body>
<form name=f1>
Course:
Languages known:
<input type="submit">
</form>
</body>
</html>
<html>
<head>
</head>
<body>
<form name=f1>
Employee Name: <input type="text" name="ename" size=15 maxlength=10 value="Enter your name"> <br>
House Address:<br>
Qualification: <select>
<option>Graduation</option>
<option>Post-Graduation</option>
<option>Doctorate</option>
</select> <br>
</form>
</body>
</html>
<!--17. Write a Program to create Pull Down Menu on the universities available in Telangana State.-->
<html>
<head>
</head>
<select>
<option>JNTU, Hyderabad</option>
</select>
</body>
</html>
<!--18. Write a Program to create Pull Down Menu on various Web Designing Softwares-->
<html>
<head>
</head>
<select>
<option>Photoshop</option>
<option>Notepad++</option>
<option>Web Browser</option>
<option>JavaScript</option>
<option>WordPress</option>
</select>
</body>
</html>
<!--19. Create a Web Page of student information form, when the information is submitted message should be
displayed .-->
<html>
<head>
<title>student details</title>
<script language="javascript">
function send()
var fname=document.f1.fname.value;
var email=document.f1.email.value;
var mobile=document.f1.mobile.value;
var city=document.f1.city.value;
var course=document.f1.course.value;
document.write("<center><table border=5>");
document.write("<tr><th>Full Name:</th><td>"+fname+"</td></tr>");
document.write("<tr><th>E-mail:</th><td>"+email+"</td></tr>");
document.write("<tr><th>Mobile:</th><td>"+mobile+"</td></tr>");
document.write("<tr><th>City:</th><td>"+city+"</td></tr>");
document.write("<tr><th>Course:</th><td>"+course+"</td></tr>");
document.write("</table></center>");
</script>
</head>
<body bgcolor="cyan">
<br>
<form name=f1>
<br>
<br>
<br>
<select name="city">
<option>hyderabad</option>
<option>mumbai</option>
<option>delhi</option>
<option>chennai</option>
<option>jaipur</option>
</select>
<br><br>
Course Studying:
<br>
<br>
</form>
</body>
</html>
<html>
<head>
<title>Frameset Program</title>
</head>
<frameset cols="25%,25%,25%,25%">
<frame src="prog20-1.html">
<frame src="prog20-2.html">
<frame src="prog20-3.html">
<frame src="prog20-4.html">
</frameset>
</html>
Prog20-1.html
<html>
<head> </head>
<body bgcolor="red">
</body>
</html>
Prog20-2.html
<html>
<head> </head>
<body bgcolor="green">
</body>
</html>
Prog20-3.html
<html>
<head> </head>
<body bgcolor="blue">
</body>
</html>
Prog20-4.html
<html>
<head> </head>
<body bgcolor="yellow">
</body>
</html>
<html>
<head>
<title>Frameset Program</title>
</head>
<frameset cols="25%,25%,25%,25%">
<frame src="prog21-1.html">
<frame src="prog21-2.html">
<frame src="prog21-3.html">
<frame src="prog21-4.html">
</frameset>
</html>
Prog21-1.html
<html>
<head> </head>
<body bgcolor="red">
</body>
</html>
Prog21-2.html
<html>
<head> </head>
<body bgcolor="green">
</body>
</html>
Prog21-3.html
<html>
<head> </head>
<body bgcolor="blue">
</body>
</html>
Prog21-4.html
<html>
<head> </head>
<body bgcolor="yellow">
</body>
</html>
<html>
<head>
<title>External StyleSheet</title>
</head>
<body>
<h1>Laptop</h1>
<font>Desktop</font>
<p>Mobile</p>
</body>
</html>
CSS file:
h1{
color:red;
font{
color:green;
p{
color:blue;
<html>
<head>
<title>Inline StyleSheet</title>
</head>
<body>
<h1 style="color:red">Laptop</h1>
<font style="color:green">Desktop</font>
<p style="color:blue">Mobile</p>
</body>
</html>
<html>
<head>
<title>External StyleSheet</title>
</head>
<body>
<h1>Laptop</h1>
<font>Desktop</font>
<p>Mobile</p>
</body>
</html>
CSS file:
h1{
color:red;
font{
color:green;
}
p{
color:blue;
<html>
<head>
<title>Embedded/Internal StyleSheet</title>
<style>
h1{
color:red;
font{
color:green;
p{
color:blue;
</style>
</head>
<body>
<h1>Laptop</h1>
<font>Desktop</font>
<p>Mobile</p>
</body>
</html>
<html>
<head>
<style>
#p1{color:red;}
#p2{color:green;}
.design{color:blue;}
</style>
</head>
<body>
<h1 class="design">Laptop</h1>
<font class="design">Desktop</font>
<p class="design">Mobile</p>
</body>
</html>
<!--
-->
<html>
<head>
<style>
#blur
filter:blur(5px);
#gray
filter:grayscale(100%);
#drop
#bright
filter:brightness(100%);
#const
filter:contrast(50%);
#inv
filter:invert(50);
#sat
filter:saturate(10);
#hue
filter:hue-rotate(45deg);
#fv
filter:flipV();
</style>
</head>
<body>
<table border=5>
<tr>
<th>Original Image</th>
<th>Invert</th>
<th>Opacity</th>
</tr>
<tr>
<th>Blur</th>
<th>Brightness</th>
<th>Hue-Rotate</th>
<th>FlipH</th>
</tr>
<tr>
<th>Gray</th>
<th>Contrast</th>
<th>Saturate</th>
<th>FlipV</th>
</tr>
<tr>
</tr>
</table>
</body>
</html>
<!--
-->
<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background: red;
div:hover {
width: 300px;
</style>
</head>
<body>
<p>Hover over the div element below, to see the transition effect:</p>
<div></div>
<p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p>
</body>
</html>
<html>
<head>
<script language="javascript">
function changetext()
p1.innerText="IIMC";
p1.style.color="red";
</script>
</head>
<body>
</body>
</html>
<!--29. Write a DHTML program to demonstrate changing text and attributes using CSS-->
<html>
<head>
<script language="javascript">
function changetext()
p1.innerText="IIMC";
p1.style.color="red";
</script>
</head>
<body>
</body>
</html>
<!-- 30.Write a javascript program to calulate Area and Circumefernce of a circle-->
<html>
<head>
<script language="javascript">
function areacir()
var pi=3.14,r,area,cir;
r=document.f1.radius.value;
area=pi*r*r;
cir=2*pi*r;
document.write("<center><table border=2>");
document.write("<tr><th>Radius</th><td>"+r+"</td></tr>");
document.write("<tr><th>Area</th><td>"+area+"</td></tr>");
document.write("<tr><th>Circumference</th><td>"+cir+"</td></tr>");
document.write("</table></center>");
</script>
</head>
<body>
<form name=f1>
</form>
</body>
</html>
<!--31. Write a Java Script program to display Greatest Number among Three Numbers .-->
<html>
<head>
<script>
function grnum()
var n1,n2,n3;
n1=document.f31.num1.value;
n2=document.f31.num2.value;
n3=document.f31.num3.value;
else
</script>
</head>
<body>
<form name=f31>
</form>
</body>
</html>
<!--
32 . Write a Java Script program to demonstrate Arithmetic Operations using Switch case.
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulo Division(Remainder)
-->
<html>
<head>
<script>
function ArtOp()
var n1,n2,res;
n1=parseInt(document.f32.n1.value);
n2=parseInt(document.f32.n2.value);
var ch;
ch=document.f32.ch.value;
//ch=window.prompt("Enter + or - or * or / or %");
switch(ch)
break;
break;
break;
break;
default: alert("invalid");
document.write("Result=" + res);
</script>
</head>
<body>
<form name="f32">
<option>+</option>
<option>-</option>
<option>*</option>
<option>/</option>
<option>%</option>
</select><br><br>
</form>
</body>
</html>
<!--33. Write a Java Script program to print Odd numbers using while loop-->
<html>
<head>
<script language="javascript">
var i=1;
while(i<=n)
document.write(i+"<br>");
i=i+2;
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<script>
function mult()
var n;
n=document.f34.num.value;
document.write("<center><table border=5>");
for(var i=1;i<=10;i++)
//document.write(n+"*"+i+"="+n*i+"<br>");
document.write("<tr><td>"+n+"*"+i+"="+n*i+"</td></tr>");
document.write("</table></center>");
</script>
</head>
<body>
<form name=f34>
</form>
</body>
</html>
<!--
-->
<html>
<head>
<script>
function omd()
function omm()
function omo()
function omv()
function omu()
{
function oc()
function odc()
function okd()
function okp()
function oku()
</script>
</head>
<body>
</body>
</html>
<!--36. Write a Java Script program to print N-natural numbers using For loop.-->
<html>
<head>
<script language="javascript">
for(var i=1;i<=n;i++)
document.write(i+"<br>");
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<script language="javascript">
var f=1;
for(var i=n;i>=1;i--)
{
f=f*i;
document.write("Fact=" + f);
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<script language="javascript">
for(var i=0;i<n;i++)
for(var i=0;i<n;i++)
document.write("<br>" + a[i]);
var sum=0;
for(var i=0;i<n;i++)
sum=sum+a[i];
</script>
</head>
<body>
</body>
</html>
<!--
-->
<html>
<head>
<script>
for(var i=0;i<s.length;i++)
document.write(s.charAt(i));
var s2="Technologies";
</script>
</head>
<body>
</body>
</html>
<!--40 . Write a Java Script program to demonstrate Math objects-->
<html>
<head>
<script>
document.write("Absolute value="+Math.abs(-3456));
//document.write("<br>"+Math.sin(90*Math.PI/180));
//document.write("<br>"+Math.sin(45*Math.PI/180));
document.write("<br>Next Integer="+Math.ceil(9.4));
document.write("<br>Previous Integer="+Math.floor(9.4));
document.write("<br>Rounded value="+Math.round(9.6));
document.write("<br>Truncated value="+Math.trunc(9.9));
document.write("<br>Power value="+Math.pow(5,3));
document.write("<br>Minimum="+Math.min(20,45,34,67,12,9));
document.write("<br>Minimum="+Math.max(20,45,34,67,12,9));
document.write("<br>Log="+Math.log(1));
</script>
</head>
<body>
</body>
</html>
<!--
|10|=10
|-10|=10
Math.acos()- Returns the arc-cosine value(in radians) of a number.
Math.PI
-->