11 STD HTML Com and Sci Practicals For Journal 2024-25-1
11 STD HTML Com and Sci Practicals For Journal 2024-25-1
Practical 2
Create a web page with, following specification.
• Image of any scientist with an alternate text as his name.
• Create a paragraph related to information of that scientist.
• Create a table of his/her inventions.
Ans : Practical 2
Aim : To Create Web Page Using Formatting Software
Requirment : Notepad / Microsoft Edge Browser
filename : practical2.html
<!doctype html>
<html>
<head>
<title> Scientist </title>
</head>
<body>
<img src="abdulkalam.jpg" alt="A.P.J Abdul kalam" width="200"
height="200">
<p>
<ol>
<li>Nandhi<br>
It was his first invention for his college project. He made a double
engine powered hovecraft and it was completed after a lot of
struggle. It flew above one foot with two people. </li>
<li>Pokhran 2 </li>
It consists of five detonations, the first was fusion bomb and the
rest were fission bombs. The speciality of Pokhran 2 was that it was
tested in ultimate secrecy. The test was a success as the spy
satellites and CIA satellites could be avoided.<br>
<li>Indigenous Guided Missiles</li>
APJ Abdul Kamal was appointed as the CEO of Integrated Guided
Missile Development Program. He was responsible for the
development and operation of AGNI and PRITHVI missiles.<br>
<li>Kalam Raju Stent</li>
Kalam developed a low cost coronary stent which led to the
reduction of prices of imported coronary stents by more than 50
per cent.
</p>
<table border="5">
<caption> A.P.J Abdul Kalam Inventions </caption>
<tr align="center">
<th> SrNo </th>
<th> Inventions </th>
<th> Year </th>
</tr>
<tr align="center">
<td> 1 </td>
<td> Nandhi </td>
<td> 1965 </td>
</tr>
<tr align="center">
<td> 2 </td>
<td> Pokhran 2 </td>
<td> 1970 </td>
</tr>
<tr align="center">
<td> 3 </td>
<td> Indigenous Guided Missiles </td>
<td> 1978 </td>
</tr>
<tr align="center">
<td> 4 </td>
<td> Kalam Raju Stent </td>
<td> 1998 </td>
</tr>
</table>
</body>
</html>
Practical 2
Output
Practical 3
Create a webpage with following specification.
• Display heading 'Application Form' in highest heading with center
• alignment.
• Accept name, standard 11th or 12 th with only one selection choice.
• Submit the form.
Ans : Practical 3
Practical 4
Write a program using HTML with the following specification.
A webpage with details about a class with total number of students-
100, (Boys-50), Girls- 50 in tabular form.
e.g.
Ans : Practical 4
Aim : To Create Web Page using table and link
Requirment : Notepad / Microsoft Edge Browser
Filename : Class Strength
<!doctype html>
<html>
<head>
<title> Class Strength </title>
</head>
<body>
<table border="5">
<caption> Class Strength </caption>
<tr bgcolor="pink">
<th> Number of Students </th>
<th> Boys </th>
<th> Girls </th>
</tr>
<tr bgcolor="lightblue" align="center">
<td>100</td>
<td>50</td>
<td>50</td>
</tr>
</table>
<br>
<a href="class.html">Click here to view Division
</a>
</body>
</html>
Practical 4
Output
Filename : demo.html
<!doctype html>
<html>
<head>
<title>Link Page</title>
</head>
<body>
<p style="border:1px solid black">
<b>Std XI</b><br>
<i>Stream - Science</i><br>
<u>Div - A</u>
</p>
</body>
</html>
Practical 4
Output
Practical 5
Q.5 Write a HTML program to display different text level formatting
tags
Ans : 5
Aim : To Create Web Page using table and link
Requirment : Notepad / Microsoft Edge Browser
File name : formatting tags.html
<!DOCTYPE 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 <sub>subscript</sub> and <sup>superscript
</sup><br><br>
<ins>Inserted Text</ins><br><br>
<del>Deleted Text</del><br><br>
</body>
</html>
Practical 5
Output
Practical 6
Q.6 Write a HTML program to display different heading Levels
Ans 6:
Aim : To Create Web Page using table and link
Requirment : Notepad / Microsoft Edge Browser
File name : Headings level.html
<!DOCTYPE html>
<html>
<head>
<title>Heading levels</title>
</head>
<body bgcolor=skyblue>
<H1>Heading level 1 Text is largest in size</H1>
<H2>Heading level 2 </H2>
<H3>Heading level 3</H3>
<H4>Heading level 4</H4>
<H5>Heading level 5</H5>
<H6>Heading level 6 Text is smallest in size</H6>
</body>
</html>
Practical 6
Output
Practical 7
Write a HTML program to get the below Output
Ans 7:
Aim : To Create Web Page using table and link
Requirment : Notepad / Microsoft Edge Browser
File name : Input Output.html
<!DOCTYPE html>
<html>
<head>
<title>Table with 4 rows and 3 columns
</title>
</head>
<body>
<table border="2">
<tr><th>Sr. No.</th>
<th>Input Device</th>
<th>Output Device</th> </tr>
<tr>
<td>1</td>
<td>Keyboard</td>
<td>Monitor</td>
</tr>
<tr>
<td>2</td> <td>Mouse</td>
<td>Printer</td>
</tr>
<tr>
<td>3</td>
<td>Joystick</td>
<td>Plotter</td>
</tr>
</table>
</body>
</html>
Practical 7
Output
Practical 08
Write a HTML program to get the below Output
Ans 08:
Aim : To Create Web Page using table and link
Requirment : Notepad / Microsoft Edge Browser
Filename ;Student Form1.html
<!DOCTYPE html>
<html>
<head><title>Form with Input elements</title></head>
<body bgcolor="orange">
<h1>USE OF FORM</h1>
<form method="post" action="/student.php">
Enter your name <input type="text" Name="n1"
maxlength="20"><Br>
Enter your standard : <input type ="radio" name="r1"
value="11"> 11<sup>th</sup>
<input type="radio" name="r1" value="12">12<sup>th
</sup><br> Choose your optional subjects : <br>
<input type="checkbox" name="c1"
Value="Hindi">Hindi<br>
<input type="checkbox" name="c2"
Value="German">German<br>
<input type="checkbox" name="c3"
Value="Biology">Biology<br>
<input type="checkbox" name="c4" Value="IT">IT<br>
<input type="submit" value="Submit"><br>
</form></body></html>
Practical 08
Output
Practical 09
Ans 09:
Aim : To Create Web Page using table and link
Requirment : Notepad / Microsoft Edge Browser
Filename: Student Form2.html
<!DOCTYPE html>
<html>
<head>
<title> Form elements and textarea</title>
</head>
<body bgcolor="cyan" text="Red">
<h1> Use of form elements </h1>
<form method="post" action="/data.php">
Enter your name: <input type="text" name="fn"> <br>
Select your city :
<select name="ct">
<option>Pune</option>
<option>Nagpur</option>
<option>Solapur</option>
</select><br>
Practical 10
Write HTML Code for the following table
Ans 10:
Aim : To Create Web Page using table and link
Requirment : Notepad / Microsoft Edge Browser
Filename:Temperature.html
<!doctype html>
<html>
<head>
<title> Temperature in Celcius</title>
</head>
<body>
<table border="5" cellpadding="15">
<caption> State Temperature in Celcius </caption>
<tr bgcolor="pink">
<th>Place</th>
<th>State</th>
<th>Maximum Temperature in Celcius</th>
</tr>
<tr bgcolor="skyblue" align="center">
<td> Wardha </td>
<td rowspan="2"> Maharashtra </td>
<td> 47.5</td>
</tr>
<tr bgcolor="skyblue" align="center">
<td>Akola </td>
<td>46.4 </td>
</tr>
<tr bgcolor="skyblue" align="center">
<td> Khajuraho </td>
<td rowspan="2">Madhya<br>Pradesh</td>
<td>46.4 </td>
</tr>
<tr bgcolor="skyblue" align="center">
<td>Sagar </td>
<td>46.2 </td>
</tr>
</table>
</body>
</html>
Practical 10
Output
Practical 11
Ans 11:
Aim : To Create Web Page using table and link
Requirment : Notepad / Microsoft Edge Browser
Filename: marks.html
<!DOCTYPE html>
<html>
<head>
<title> Use of colgroup</title>
</head>
<body style="font-size:30px">
<table border="2">
<colgroup>
<col span="1" bgcolor="red">
<col span="1" bgcolor="lightgreen">
<col span="1" bgcolor="navyblue">
</colgroup>
<tr align="center">
<th>Sr</th>
<th>Topic Name</th>
<th>Weightage</th>
</tr>
<tr align="center">
<td>1</td>
<td>Basics of IT</td>
<td>20</td>
</tr>
<tr align="center">
<td>2</td>
<td>Introduction to DBMS</td>
<td>15</td>
</tr>
<tr align="center">
<td>3</td>
<td>Impressive Web Designing</td>
<td>30</td>
</tr>
</table>
</body>
</html>
Practical 11
Output
Practical 12
14.Write HTML program for inserting image in the below
order
Ans 12:
Aim : To Create Web Page using IMG TAG
Requirment : Notepad / Microsoft Edge Browser
File Name : imagesize.html
Ans :
<!doctype html>
<html>
<head>
<title> Different Images </title>
</head>
<body align="center">
<img src="lighthouse.jpg" width="100" height="100"
alt="Lighthouse picture"><br><br>
<img src="lighthouse.jpg" width="200" height="200"
alt="Lighthouse picture"><br><br>
<img src="lighthouse.jpg" width="300" height="300"
alt="Lighthouse picture"><br><br>
</body>
</html>
Practical 12
Output
Practical 13
Use of Multiple Audio on web pages using html5
Create webpage named audio1.html which provides multiple source
file formats for the same audio file that plays a sound automatically
with controls. The browser should display the message with
appropriate attribute when audio file is not supported by browser.
The code must incorporate the list of sound files formats (like wav,
MP3 or ogg etc).
Ans 13:
Aim : To Create Web Page using table and link
Requirment : Notepad / Microsoft Edge Browser
Filename : audio1.html
<!DOCTYPE html>
<html>
<head>
<title> Multiple Audio files with controls</title>
</head>
<body align="center">
<h1 align="center"> Multiple Audio with controls </h1>
<h2> The text between the audio tags will only be displayed in
browsers that do not support the audio element/tag </h2>
<h3> List of sound file formats </h3>
<ol>
<li> Mp3--> audio/mpeg</li>
<li> Ogg--> audio/ogg</li>
<li> Wav--> audio/wav</li>
</ol>
<audio controls autoplay loop="-1">
<source src="kalimba.wav" type="audio/wav">
<source src="kalimba.mp3" type="audio/mp3">
<source src="kalimba.ogg" type="audio/ogg">
</audio>
</body>
</html>
Practical 13
Output
Practical 14
Use of Multiple video on web pages using html5
Create webpage which provide multiple source file formats for the
same audio file that plays a sound automatically with controls. The
dimension of video area should be 100* 100 pixels. The browser
should display the message with appropriate attribute when audio
file is not supported by browser. The code must incorporate the list
of video files formats (like webM, MP4 or ogg etc)
Ans 14:
Aim : To Create Web Page using table and link
Requirment : Notepad / Microsoft Edge Browser
Filename : video.html
Answer
Coding :
<!DOCTYPE html>
<html>
<head>
<title>Multiple Video File on Web Page with controls</title>
</head>
<body>
<h1 align="center">Multiple Video File on Web Page with
controls</h1>
<h2>
The text between the video tags will only be displayed on browsers
that do not support the video element </h2>
<h3>List of video files formats</h3>
<ol>
<li>WebM-video/Webm</li>
<li>Mp4-video/Mp4</li>
</ol>
<video controls width="100" height="100" autoplay>
<source src="Wildlife.webm" type=video/webm>
<source src="Wildlife.mp4" type=video/mpeg>
</video>
</body>
</html>
Practical 14
Output
Practical 15
WRITE HTML PROGRAM WITH MARQUEE AND HR TAG
Ans 15:
Aim : To Create Web Page using table and link
Requirment : Notepad / Microsoft Edge Browser
Filename : marquee.html
<!doctype html>
<html>
<head>
<title> Marquee and Hr Tag </title>
</head>
<body bgcolor="black" text="navyblue" style="font-size:30px;text-
transform:uppercase; font-family:arial">
<marquee scrollamount="20" behavior="alternate"
direction="right">
<hr color="orange" width="300" size="50"> </hr>
<hr color="white" width="300" size="50"> </hr>
<hr color="green" width="300" size="50"> </hr>
<p align="center" style="font-size:30px; text-
transform:uppercase"> East or West India is the Best </p>
</marquee>
<marquee behavior="alternate" scrollamount="1" style="font-
size:30px"> Slow Scrolling </marquee>
<hr color="blue" width="1400" size="5"> </hr>
<marquee behavior="alternate" direction="right"
scrollamount="12" style="font-size:30px" bgcolor="brown">Little
Fast Scrolling</marquee>
<hr color="blue" width="1400" size="5"> </hr>
<marquee behavior="alternate" direction="left" scrollamount="20"
style="font-size:30px" bgcolor="purple">Fast Scrolling</marquee>
Practical 15
Output
Practical 16
Write a javascript program to accept two numbers and
perform addition, subtraction, division, subtraction and
module(remainder)and square of two numbers
Ans 16:
Aim : To Create event driven program (mouse click)
Requirment : Notepad / Microsoft Edge Browser
Filename : calc.html
Practical 17
Output
Practical 18
Write a Event Driven Javascript Program to display factorial
of user number
Ans : Practical 18
Aim : To Create a JavaScript program to area of circle
Requirment : Notepad plus plus/ Microsoft Edge Browser
Filename : factorial.html
<script>
// Start of the script block
{
// Declare variable i (used for iteration), and f (to store factorial
result), initialize f to 1
var i, f = 1;
// Start for loop to iterate from the number entered by the user
down to 1
for (i=num; i>= 1; i--)
{
// Multiply f by the current value of i and store result back in f
f = f * i;
}
Practical 18
Output
Practical 19
Create JavaScript program to accept a integer and display
even or odd number.
Ans : Practical 19
Aim : To Create a JavaScript program to find even and odd
number
Requirment : Notepad plus plus/ Microsoft Edge Browser
Filename : evenodd.html
<!doctype html>
<html>
<title>Even or Odd</title>
<body>
<script>
// Declare a variable num to store the number entered by
the user
var num;
Ans : Practical 20
Aim : To Create a JavaScript program to accept two integers
and display larger number of them.
Requirment : Notepad plus plus/ Microsoft Edge Browser
Filename : greaternumber.html
<script>
{
alert("test");
var a,b,c;
a=parseInt(prompt("Enter the first number"));
b=parseInt(prompt("Enter the second number"));
if(a>b)
{
alert("First no i.e " +a+ " is greater than second number i.e " +b);
}
else if (a==b)
{
alert("First no i.e " +a+ " is equal to second number i.e " +b);
}
else
{
alert("Second number i.e " +b+ " is greater than first number i.e "
+a);
}
}
</script>
Practical 20
Output
Practical 21
Create a JavaScript program using function displaying
welcome to function
Ans : Practical 21
Aim : To Create a JavaScript program using function
displaying welcome to function
Requirment : Notepad plus plus/ Microsoft Edge Browser
Filename : Welcome.html
<!DOCTYPE html>
<html>
<head>
<title>Function program</title>
<script language="javascript">
function show()//defining a function
{
alert("Welcome to function");
}
</script></head>
<body bgcolor="green">
<h1> Use of Function in Javascript </h1>
<script language="javascript">
show();//calling of function
</script>
</body>
</html>
Practical 21
Output
Practical 22
Create Event driven JavaScript program to find enter age is
qualify for driving or not
Ans : Practical 22
Aim : To Create Event Driven Javascript program using
function to convert enter string to upper case
Requirment : Notepad / Microsoft Edge Browser
Filename : agequalify.html
<!DOCTYPE html>
<html><head><title>conditional statement</title>
<script language="javascript">
function check()
{
var age;
age=form1.t1.value;
if(age>=18)
alert("Qualifies for driving");
else
alert("Does not qualifies for driving");
}
</script></head>
<body>
<form name="form1">
<center>
Enter your age:-
<input type="text" name="t1"><br><br>
<input type="button" value="SUBMIT" onClick="check()">
</form>
</body>
</html>
Practical 22
Output
Practical 23
Write an event driven Javascript program to display table of
accepted number(eg. 2x1=2, 2x2=4,…..i)
Ans : Practical 23
Aim : To Create Event Driven Javascript program using
function to get table of a given number
Requirment : Notepad / Microsoft Edge Browser
Filename:multable.html
<!DOCTYPE html>
<html>
<head>
<title>Table of any number</title>
<script>
var n,i,m;
n=prompt("Enter a number");
for(i=1;i<=10;i++)
{
m=n*i;
document.write(n+"x"+i+"="+m+"<br><br>");
}
</script>
Practical 23
Output