Professional Documents
Culture Documents
HTML Programs
HTML Programs
1. Design a web page to Show your College and its departments details using
basic text formatting tags (at least 4)
<html>
<head>
<title>Page Title</title>
</head>
<body align="center">
<!-- 1. Design a web page to Show your College and its departments details using
basic text formatting tags (at least 4)-->
<b><u>Faculties:-</u></b> <br>
Habeebu Rahman <sub>(Hod) </sub><br>
Sheena E <sub>Asst.pro </sub><br>
</body>
</html>
2. Design a web page to show image as link (include two different links)
<html>
<head>
<title>Page Title</title>
</head>
<body align="center">
<!--2. Design a web page to show image as link (include two different links)-->
<h1>Images as links</h1>
<a href="a.jpg"> <img width="150" src="a.jpg" /> </a>
<a href="b.jpg"> <img width="150" src="b.jpg" /> </a>
</body>
</html>
3. Create a webpage to show photo album (minimum 4 photos)
<html>
<head>
<title>Page Title</title>
</head>
<body align="center">
<h1>Photo Album</h1>
<table align="center">
<tr>
<td><img width="150" src="a.jpg" /></td>
<td><img width="150" src="b.jpg" /></td>
<td><img width="150" src="c.jpg" /></td>
</tr>
<tr>
<td><img width="150" src="d.jpg" /></td>
<td><img width="150" src="e.jpg" /></td>
<td><img width="150" src="f.jpg" /></td>
</tr>
</table>
</body>
</html>
4. Divide a webpage into 3 parts using frames and include a background
image, table and hyper link in the parts
Lab4.html
<html>
<head>
<title>Page Title</title>
</head>
<!--4-Divide a webpage into 3 parts using frames and include a background
image, table and hyper link in the parts-->
<frameset rows = "50%,30%,20%">
<frame name = "top" src = "top_frame.html" />
<frame name = "main" src = "main_frame.html" />
<frame name = "bottom" src = "bottom_frame.html" />
<noframes>
<body>Your browser does not support frames.</body>
</noframes>
</frameset>
</html>
Main_frame.html
<html>
<head>
<title>Page Title</title>
</head>
<!--4-Divide a webpage into 3 parts using frames and include a background
image, table and hyper link in the parts-->
<body >
<table border="1" width="50%" align="center">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
</body>
</html>
Top_frame.html
<html>
<head>
<title>Page Title</title>
</head>
<!--4-Divide a webpage into 3 parts using frames and include a background
image, table and hyper link in the parts-->
<body style="background-image:url(a.jpg)">
</body>
</html>
Bottom_frame.html
<html>
<head>
<title>Page Title</title>
</head>
<!--4-Divide a webpage into 3 parts using frames and include a background
image, table and hyper link in the parts-->
<body align="center">
<a href="https://www.google.com/">click here to goto Google</a> <br>
<a href="https://www.facebook.com/">click here to goto Facebook</a>
</body>
</html>
5. Design a web page to show the product details of a computer, printer and
scanner with images
<html>
<head>
<title>Page Title</title>
</head>
<body >
<!--5. Design a web page to show the product details of a computer, printer and
scanner with images-->
<h1>Definition List</h1>
<dl>
<dt><h3>Computer</h3></dt>
<dd>
<img src="computer.jpg" width="200px" /><br>
an electronic device for storing and processing data, typically in binary
form, according to instructions given to it in a variable program.
</dd>
<dt><h3>Printer</h3></dt>
<dd>
<img src="printer.jpg" width="200px" /><br>
a printer is a peripheral machine which makes a persistent representation
of graphics or text, usually on paper. While most output is human-readable, bar
code printers are an example of an expanded use for printers.
</dd>
<dt><h3>Scanner</h3></dt>
<dd>
<img src="scanner.jpg" width="200px" /><br>
An image scanner—often abbreviated to just scanner, is a device that
optically scans images, printed text, handwriting or an object and converts it to a
digital image. Commonly used in offices are variations of the desktop flatbed
scanner where the document is placed on a glass window for scanning.
</dd>
</dl>
</body>
</html>
6. Create a webpage for student registration form(include address, gender(radio
button),qualification(select box),languages known(checkbox))
<html>
<head>
<title>Page Title</title>
</head>
<body >
<form>
student name: <input type="text" name="username"><br>
age: <input type="text" name="age"><br>
gender: <input type="radio" name="gender">Male <input type="radio"
name="gender">FeMale <br>
Qualification: <select name="qualification">
<option>SSLC</option>
<option>+2</option>
<option >Degree</option>
<option>PG</option>
</select> <br>
Languages Known: <input type="checkbox"
name="malayalam">Malayalam <input type="checkbox" name="hindi">Hindi
<input type="checkbox" name="english">English <br>
Address: <textarea name="address"></textarea> <br><br><br>
<input type="submit" value="save" />
</form>
</body>
</html>
7. Crete a web page to show details (Fee, Duration etc.,) of courses offered by
your college using hyperlink(give links to navigate to next, previous and
home pages)
Lab7.html
<html>
<head>
<title>Page Title</title>
</head>
<body align="center">
<!-- 7- Crete a web page to show details (Fee, Duration etc.,) of courses offered
by
your college using hyperlink(give links to navigate to next, previous and
home pages)-->
<p>Peekay CICS Arts & Science College is a self financing College approved by
the Govt. of Kerala and affiliated to the University of Calicut. .
The college was established by the Calicut Islamic Cultural Society (CICS), P.O.
Kolathara, Calicut, in 2013.
Within a short span of time, the college has successfully carved a distinctive
niche in the temple of fame among all other self financing institutions under the
University.
The college has been a perfect launching pad for furthering the aspirations of
students aiming for academic advancement.
To impart quality education, fully devoted and committed teachers including
retired professors render their distinguished services.</p>
</body>
</html>
Courses.html
<html>
<head>
<title>Page Title</title>
</head>
<body>
<!-- 7- Crete a web page to show details (Fee, Duration etc.,) of courses offered
by
your college using hyperlink(give links to navigate to next, previous and
home pages)-->
</ul>
<a href ="lab7.html" >home(Previous)</a> <br>
Details.html
<html>
<head>
<title>Page Title</title>
</head>
<body >
<!-- 7- Crete a web page to show details (Fee, Duration etc.,) of courses offered
by
your college using hyperlink(give links to navigate to next, previous and
home pages)-->
</body>
</html>
9. Show the following table in a webpage
<html>
<head>
<title>Page Title</title>
</head>
<body align="center">
</tr>
<tr>
<th>Arrival</th>
<th>Departure</th>
</tr>
<tr>
<td>data</td>
<td>data</td>
<td>data</td>>
<td>data</td>
<td>data</td>
</tr>
<tr>
<td>data</td>
<td>data</td>
<td>data</td>>
<td>data</td>
<td>data</td>
</tr>
<tr>
<td>data</td>
<td>data</td>
<td>data</td>>
<td>data</td>
<td>data</td>
</tr>
<tr>
<td>data</td>
<td>data</td>
<td>data</td>>
<td>data</td>
<td>data</td>
</tr>
</table>
</body>
</html>
10. Display drinks menu (Hot Drinks and Cool drinks) in restaurant using
definition list.
<html>
<head>
<title>Page Title</title>
</head>
<body align="center" >
<!--10. Display drinks menu (Hot Drinks and Cool drinks) in restaurant using
definition list.-->
</body>
</html>
11. Display web page to show tri color flag using div tag (use primary colors)
<html>
<head>
<title>Page Title</title>
<style>
#container{
width:500px;
height:300px;
border:2px solid;
}
#orange{
background-color:#FF9933;
height:100px;
}
#white{
background-color:#ffffff;
height:100px;
}
#green{
background-color:#138808;
height:100px;
}
</style>
</head>
<body >
<!--11. Display web page to show tri color flag using div tag (use primary
colors)-->
<h1>Flag</h1>
<div id="container">
<div id="orange">
</div>
<div id="white">
</div>
<div id="green">
</div>
</div>
</body>
</html>
12. Design a webpage to display syllabus of your course using list tag.(use
ordered, unordered format as main, sub main and sub- sub main and use
numbers special types of bullets in appropriate places)
<html>
<head>
<title>Page Title</title>
</head>
<body>
<!-- 12. Design a webpage to display syllabus of your course using list tag.(use
ordered, unordered format as main, sub main and sub- sub main and use
numbers special types of bullets in appropriate places) -->
<li><h3>Semester 3</h3></li>
<ul type="disc">
<li>Data Structure</li>
<ol type="I">
<li>Theory</li>
<li>Practical</li>
</ol>
<li>C++</li>
<ol type="I">
<li>Theory</li>
<li>Practical</li>
</ol>
<li>Mathematics</li>
<li>Statitics</li>
</ul>
<li><h3>Semester 4</h3></li>
<ul type="disc">
<li>RDBMS</li>
<ol type="I">
<li>Theory</li>
<li>Practical</li>
</ol>
<li>PHP</li>
<ol type="I">
<li>Theory</li>
<li>Practical</li>
</ol>
<li>E commerce</li>
<li>TOC</li>
</ul>
<li><h3>Semester 5</h3></li>
<ul type="disc">
<li>Java Programming</li>
<ol type="I">
<li>Theory</li>
<li>Practical</li>
</ol>
<li>Mini Project</li>
<li>Software Engineering</li>
<li>AI</li>
</ul>
<li><h3>Semester 6</h3></li>
<ul type="disc">
<li>Android Programming</li>
<ol type="I">
<li>Theory</li>
<li>Practical</li>
</ol>
<li>Project</li>
<li>IOT</li>
<li>Software testing</li>
</ul>
</ol>
</body>
</html>
13. Create web page to show page link, file link, and external link
<html>
<head>
<title>Page Title</title>
</head>
<body align="center">
<!-- 13. Create web page to show page link, file link, and external link -->
</body>
</html>
14. Design a html page to show the use of i frame
Lab14.html
<html>
<head>
<title>Page Title</title>
</head>
<body align="center">
<!-- 14. Design a html page to show the use of i frame -->
<h1>I frame</h1>
<iframe src="frame1.html" title="Frame1"></iframe>
<iframe src="frame2.html" title="Frame2"></iframe>
</body>
</html>
frame1.html
<html>
<head>
<title>Page Title</title>
</head>
<body bgcolor="yellow">
<!-- 12. Design a webpage to display syllabus of your course using list tag.(use
ordered, unordered format as main, sub main and sub- sub main and use
numbers special types of bullets in appropriate places) -->
</body>
</html>
frame2.html
<html>
<head>
<title>Page Title</title>
</head>
<body bgcolor="magenta">
<!-- 12. Design a webpage to display syllabus of your course using list tag.(use
ordered, unordered format as main, sub main and sub- sub main and use
numbers special types of bullets in appropriate places) -->
</body>
</html>
15. Design a webpage using internal style sheet for setting styles to heading,
body and table
<html>
<head>
<title>Page Title</title>
<style>
body{
background-color:black;
color:white;
}
h1{
text-decoration:underline;
border:2px red solid;
padding:30px;
}
table{
background-color:yellow;
color:green;
}
</style>
</head>
<body align="center">
<!-- 15. Design a webpage using internal style sheet for setting styles to
heading,
body and table -->
</body>
</html>