It Journal2024-25
It Journal2024-25
1) The index page must contain a heading which is highest among other text on
pages and must be at center of the page. There must be a paragraph which
introduces general information about the theme chosen must have at least 3
physical style tags and one image with alternate text. This page must be
connected to the other two pages with proper navigational links.
2) The 2nd page must contain the feedback or enrolment form related with
theme chosen with features of HTML5.The form must contain text element
and email address of the company or person. Include the submit button.
Index.html
<!doctype html>
<html>
<head>
<title>Index Page</title>
<style type="text/css">
h1{text-align:center;font-size:36px;font-style:bold;}
p{ text-decoration:underline;font-style:bold; color:green;}
body{background-color:pink}
img{border:solid}
</style></head><body>
<p>It is a junior college of Arts ,Commerce and Science registered to HSC Board
pattern established in the year 2008.College is currently operating std
11<sup>th</sup> and 12 <sup>th</sup>
Page2.html
<html><head><title>Second Page</title>
<h1>Enrollment Form</h1>
</body></html>
Practical no: 2
The top section will display the heading, ‘Tourist places’ in header. The section
on the left has list of cities.The right hand side displays tourist places of any one
of the city.
Use Inline style sheet in the top section to display background color for the text
‘Tourist places’. Use internal style sheet for the left and right section with
background color and font styles.
Tourist.html
<html>
<style>
section{background-color:yellow;width:50%;height:50%;
float:left;color:black;font-size:30px;outline-style:solid;} aside{background-
color:pink;width:50%;height:50%; float:right;color:black;font-size:30px;outline-
style:solid;}
</style></head>
<body>
<header style="background-color:lightblue;color:deeppink;text-align:center;
height:30%;width:100%;font-size:50px;outline-style:solid;">Tourist places
</header>
</ol></section>
</ul></aside></body></html>
Practical no:3
Create a webpage named audio.html to set an audio file in web page with
controls such that it uses HTML5 elements. The audio file must play as soon as
the webpage loads in browser and it will start over again, every time when it is
completed.
Create another 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).
Audio.html
<!doctype html>
<html>
<head>
</title>
</head>
<body>
<source src="Kalimba.mp3"type="audio/mp3"/>
</audio>
</body></html>
Audio1.html
<!doctype html>
<html>
<head>
</head>
<body>
<ol><li>mp3-audio/mp3</li>
<li>ogg-audio/ogg</li>
<li>wav-audio/wav</li>
</ol>
<source src="Kalimba.wav"type"="audio/wav"/>
</audio>
</body>
</html>
Practical no:4
SOP 6: Use of video on web pages using html5
Create a webpage named video.html to display a video file on web page and plays
automatically with controls. The dimension of video area should be 150 * 150
pixels.
Create another webpage which video provide multiple source file formats for the
same video file that plays a video with controls. The dimension of video area
should be 100 * 100 pixels .The browser should display the message with
appropriate attribute when video file is not supported by browser. The code must
incorporate the list of video files formats (like webM, MP4 or ogg etc.)
Video.html
<!doctype html><html>
Video1.html
<!doctype html>
<html><head>
</head>
<body>
<ol><li>mp4-video/mp4</li>
<li>wmv-audio/wmv</li>
<li>webm-audio/webm</li>
<source src="Wildlife.webm"type"="video/webm"/>
</video></body></html>
Practical no:5
SOP 7:Navigation on an image using Client side image Mapping in
web page using html 5.
Imagemap.html
<!DOCTYPE html>
<p>Click on the computer, the phone, or the cup of coffee to go to a new page and
read more about the topic:</p>
<map name="imagemap">
<html><head><title>Computer</title>
</head>
<body><h1>This is page 1</h1>
</body></html>
Page2.html
<html><head><title>Mobile</title>
</head>
<body><h1>This is page 2</h1>
</body>
</html>
Page3.html
<html><head><title>coffee</title>
</head>
<body><h1>This is page 3</h1>
</body>
</html>
Practical no:6
SOP 2: Create JavaScript program for the following form
validations. Make use of HTML5 properties to do the following
validations :
1) Name, address, contact number and email are required fields of the form.
2) Address field should show the hint value which will disappear when field
4) Email field should contain valid email address, @ should appear only once
and not at the beginning or at end. It must contain at least one dot(.).
Info.html
<!doctype html>
<html><head><title>Javascript</title>
</head><body><h1>Information Form</h1>
</textarea><br><br>
</form>
</body>
<script type="text/javascript">
function validate_email()
var x=f1.txt_email.value;
var at_pos=x.indexOf("@");
var last_pos=x.lastIndexOf("@");
var firstdot_pos=x.indexOf(".");
var dot_pos=x.lastIndexOf(".");
if(at_pos<1||dot_pos<at_pos+2||dot_pos+2>=x.length||firstdot_pos<at_pos||at_pos
<last_pos)
f1.txt_email.focus();
else{
To accept string from user and count number of vowels in the given string.
Vowel.html
<!doctype html>
<html>
<head><title>String functions</title></head>
<body>
<form name="frm1">
Enter Your Name<input type="text"name="t1"><br><br>
<input type="button"name="btncheck"value="Count vowel"onClick="cnt()">
</form>
</body>
<script
type="text/javascript">
function cnt()
{
var s,i,ch,c;
c=0;
s=frm1.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++;
}
</script>
</html>
Practical no:8
SOP4: Create event driven JavaScript program for the following. Make use
of appropriate variables, JavaScript inbuilt string functions and control
structures
To accept string from user and reverse the given string and check whether
it is palindrome or not.
Palindrome.html
<!doctype html>
<html>
<head><title></title></head>
<body>
<script
type="text/javascript">
function reverse_String()
{
</script>
</body>
</html>
Practical no:9
Temp.html
<!DOCTYPE html>
<html>
<head><title>SOP 5 Javascript</title>
<script>
function convert(temperature) {
var t;
t = document.getElementById("txt_celsius").value * 9 / 5 + 32;
document.getElementById("txt_fah").value = Math.round(t);
}
else //fahrenheit to celsius
t = (document.getElementById("txt_fah").value -32) * 5 / 9;
document.getElementById("txt_celsius").value = Math.round(t);
</script></body></html>
Practical no:10
SOP 1-Write a PHP program to check if a person is eligible to vote or not. The
program should include the following-
<body>
</form>
</body>
</html>
Age.php
<?php
if(isset($_POST['submit']))
{
$age=$_POST['age'];
if($age>=18)
else{
}}?>
Practical no:11
SOP 5: Write a PHP program to save marks of English, Hindi, Marathi, Maths and
Information technology in an array for 5 students and display total marks and
percentage of each students using ‘Foreach’
Marks.php
<?php
$a=array(55,68,60,80,75);
$t=0;
foreach($a as $value)
echo"<br><br>Marks in subject.$value";
$t=$t+$value;
$p=$t*100/500;
echo"<br><br>Total is:.$t";
echo"<br><br>Percentage is:.$p";
?>
Practical no:12
SOP 6 : Write a program using PHP to calculate Electricity bill by accepting the
limits.
Bill.html
<html>
<body>
<br><br>
</form>
</body></html>
Bill.php
<?php
if(isset($_POST['submit']))
{
$units=($_POST['units']);
if($units<=100)
{
$b=$units*4;
else
if($units<=200)
$b=400+($units-100)*5;
echo"Your Bill Amount is.$b";
}
else
$b=400+500+($units-200)*6;
echo"Your Bill Amount is.$b";
}}}?>