Practical Handbook
Practical Handbook
Certificate
This is to certify that,
Mr./Miss. ___________________________________________
Of class XII Division ___________ Roll No_________
H.S.C. Board Examination Seat No____________ has satisfactory
completed required Experiments and Activities in subject
Information Technology prescribed by Maharashtra State Board,
this journal represents his/her Bonafide work during the
Academic year 2024-2025
Date:
</body>
</html>
Output:
PRACTICAL NO:5
ROLL NO:
SEAT NO:
PRACTICAL NAME: Use of Video on web pages using HTML5
Video.html
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Single Video with Control</title>
</head>
<body>
<h1>Single video file on web page with controls</h1>
<video controls width="150" height="150" controls loop=-1 autoplay>
<source src="C:\2253585-uhd_3840_2160_24fps.mp4"
type="video/mp4">
Your browser does not support the videio tag.
</video>
</body>
</html>
Video1.html
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Multiple video with control</title>
</head>
<body>
<h1>Multiple Video</h1>
<video controls autoplay height="150" width="150">
<source src="C:\2253585-uhd_3840_2160_24fps.mp4"
type="video/mp4">
<source src="C:253585-uhd_4840_3160_34fps.mp4"
type="video/mp4">
<source src="C:253585-uhd_5840_4160_44fps.mp4"
type="video/mp4">
</video>
</body>
</html>
Output:
PRACTICAL NO:6
ROLL NO:
SEAT NO:
PRACTICAL NAME: Create event driven JavaScript program to count
number of vowels in the given string
Vowels.html
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>String Function</title>
</head>
<body>
<form name="f1">
Enter String: <input type="text" name="t1"><br><br>
<input type="submit" name="s1" value="Count Vowels"
onclick="return countvowel()">
</form>
<script language="javascript" type="text/javascript">
function countvowel() {
var s, i, ch, c;
c = 0;
s = document.f1.t1.value;
for (i = 0; i < s.length; i++) {
ch = s.charAt(i);
if (ch == "A" || ch == "a" ||
ch == "E" || ch == "e" ||
ch == "I" || ch == "i" ||
ch == "O" || ch == "o" ||
ch == "U" || ch == "u") {
c++;
}
}
alert("Number of Vowels in String are " + c);
return false; // Prevent form submission
}
</script>
</body>
</html>
Output:
PRACTICAL NO:7
ROLL NO:
SEAT NO:
PRACTICAL NAME: Create event driven JavaScript program to check
whether string is palindrome or not.
Palindrome.html
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Palindrome</title>
</head>
<body>
<form name=f1>
Enter String:<input type="text" name="t1"><br><br>
<input type="submit" name="s1" value="Check Palindrome"
onclick="display()">
</form>
<script language="javascript" type="text/javascript">
function display()
{
var a,s,i,ch,n,p
a=document.f1.t1.value
s=a.toLowerCase()
n=s.length
p=1
for(i=0;i<n/2;i++)
{ if(s.charAt(i)!=s.charAt(n-1-i)){
p=0
break
}
}
if (p==1)
alert("String is Palindrome")
else
alert("String is not Palindrome")
}
</script>
</body>
</html>
Output:
PRACTICAL NO:8
ROLL NO:
SEAT NO:
PRACTICAL NAME: Create event driven JavaScript program to convert
temperature to Celsius into Fahrenheit.
Conversion.html
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Celsius to Fahrenheit</title>
</head>
<body>
<h1>Celsius to Fahrenheit Conversion</h1>
<p>Insert a number into one of the input fields below:</p>
<p><input type="text" id="c" onkeyup="convert('c')"> Degree
Celsius</p>
<p><input type="text" id="f" onkeyup="convert('f')"> Degree
Fahrenheit</p>
<script type="text/javascript">
function convert(degree){
var x;
if (degree == "c"){
x = document.getElementById("c").value * 9 / 5 +
32;
document.getElementById("f").value =
Math.round(x);
}
else{
x = (document.getElementById("f").value - 32) * 5 /
9;
document.getElementById("c").value =
Math.round(x);
}
}
</script>
</body>
</html>
Output:
PRACTICAL NO:9
ROLL NO:
SEAT NO:
PRACTICAL NAME: Create event driven JavaScript to display grade of
student
Grade.html
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Grade</title>
</head>
<body>
<form name="f1">
Enter Marks of English
<input type="number" name="t1"><br><br>
Enter Marks of Mathematics
<input type="number" name="t2"><br><br>
Enter Marks of Physics
<input type="number" name="t3"><br><br>
Enter Marks of Chemistry
<input type="number" name="t4"><br><br>
Enter Marks of IT
<input type="number" name="t5"><br><br>
<input type="button" name="btnclick" value="Print Grade"
onclick="grade()">
</form>
<script type="text/javascript">
function grade(){
var m1, m2, m3, m4, m5, a;
// Convert the input values to numbers using parseFloat
m1 = parseFloat(document.f1.t1.value);
m2 = parseFloat(document.f1.t2.value);
m3 = parseFloat(document.f1.t3.value);
m4 = parseFloat(document.f1.t4.value);
m5 = parseFloat(document.f1.t5.value);