You are on page 1of 17

1.

Write various programs in html and display their


output

PROGAM 1:
Program to display different text edits in html

<html><head><title>
Example of HTML5 text formatting tags
</title>
</head>
<body>
<b>This text is bold</b><br><br>
<i>This text is italic</i><br><br>
<mark>this text is marked</mark><br><br>
this is<sup>xyz</sup>and<sup>yzk</sup><br><br>
<ins>xysaidha</ins><br><br>
<del>this is html</del><br><br>
<a href="table.html">link</a>
</body></html>

1
Output:

2
Program 2
Program to create a table using rowspan and colspan
<html>
<head>
<title>
table with rowspan
</title>
</head>
<body>
<table border"3"="">
<tbody><tr><td rowspan="2">colors</td>
<td bgcolor="red">red</td></tr>
<tr>
<td bgcolor="green">green</td></tr>
</tbody>
</table>
</body>
</html>

3
Output:

4
Program 3
Program to display a list with checkbox and radio
buttons
<html><head><title>form with input
elements</title></head>
<body bgcolor="red">
<h1>use of form</h1>
<form>
enter your name<input type="text" name="n1"
maxlength="20"><br>
enter your standard:<input type="radio" name="r1"
value="12">12<sup>th
</sup><br>choose your optional subjects:<br>
<input type="checkbox''name=" cl"value="hindi">hindi<br>
<input type="checkbox''name="
cl"value="german">german<br>
<input type="checkbox''name="
cl"value="biology">biology<br>
<input type="chechbox" name="cl" value="sumbit"><br>
</form>

5
Output:

6
Program 4:
To ask the user to enter the age and display if eligible
for license using java script

<html><head><title>logical operations</title>
</head><body>
<h3>some java operations</h3>
<script language="javascript">
var choice
choice=prompt("enter your age");
choice=parseInt(choice);
if(choice>=18)
{document.write("eligible for license");}
else
{document.write("you must be 18 years old");}
</script>eligible for license
</body></html>

7
Output:

8
Program 5:
To ask the user to enter radius and display the area of
circle using java script
<html>
<head><title>area of circle</title>
</head>
<body bgcolor="yellow">
<h1>program to calculate area of circle
<script language="javascript">
var r,area;
r=prompt("Enter the radius of circle");
area=3.14*r*r;
document.write("<h1>you entered radius
value:</h1>"+r);
document.write("<h1>area of circle is:</h1>"+area);
</script></h1><h1>you entered radius
value:</h1>33<h1>area of circle is:</h1>3419.46
</body>
</html>

9
Output:

10
Program 6:
To display the multiplication of two numbers using
java script

<html><head><title>multiplication</title></head>
<body bgcolor="yellow">
<h1>program to calculate multiplication of two
number</h1>
<script language="javascript">
var a,b,c;
a=76;
b=80;
c=a*b;
document.write("<br><h1>multiplication of two
numbers:"+c+"</h1>");
</script><br><h1>multiplication of two
numbers:6080</h1>
</body></html>

11
Output:

12
2. Using various tools in UBUNTU

1 printing series in libre office calc

13
2 Preparing a resume in libre office writer

14
3 calculating percentage and average in libre office
calc

15
4 creating a slide show using libre office impress
Slide 1:

Slide 2:

16
Slide 3:

17

You might also like