Practical File Final
Practical File Final
1. Introduction to HTML
</body>
</html>
This Will Display:
Write a program to design a web page
using list
In HTML, there are three main types of lists that you can create:
1. Unordered List (<ul>)
- An unordered list displays a list of items without any
specific order. The items are usually marked with bullets (•).
- Each item in the list is defined by the <li> (list item) element.
Syntax:
html
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
Example:
html
<ul>
<li>Apples</li>
<li>Oranges</li>
<li>Bananas</li></ul>
</ul>
Syntax:
html
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
Example:
html
<ol>
<li>First step</li>
<li>Second step</li>
<li>Third step</li>
</ol>
This will display:
1. First step
2. Second step
3. Third step
Example:
html
<dl>
<dt>HTML</dt>
<dd>HyperText Markup Language, used for structuring
web content.</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets, used for styling
web pages.</dd>
</dl>
This will display:
- HTML: HyperText Markup Language, used for
structuring web content.
- CSS: Cascading Style Sheets, used for styling web pages.
Write a program to design a web page
using color effects.
Example:
<!DOCTYPE html>
<html>
<head>
<title>Color</title>
</head>
<body bgcolor=lightgray text=red>
Adding colors to webpage could achieve certain visual effects
and make them more attractive.
</body>
</html>
This will display:
Write a program to show Time Table.
In HTML, a table is used to display data in a structured way,
using rows and columns. The main HTML elements involved
in creating a table are <table>, <tr>, <th>, and <td>. Here's a
breakdown of these elements:
Basic Structure of an HTML Table
<table>: Defines the table itself.
<tr>: Defines a table row.
<th>: Defines a table header cell (usually bold
and centered).
<td>: Defines a table data cell (contains the data).
Example:
<!DOCTYPE html>
<html>
<head>
<title>Time Table</title>
</head>
<body>
<table border="1" Cellpadding="10" cellspacing="0" >
<tr>
<th>Day/Time </th>
<th>I(9-10) </th>
<th>II(10-11) </th>
<th>III(11-12) </th>
<th>IV(12-13) </th>
<th>V(13-14) </th>
</tr>
<tr>
<th>Monday </th>
<td>C.Law (Dr. Renu Jain) R.19 </td>
<td>IBE (Dr. Prativindya) R.18 </td>
<td> </td>
<td>Pro. Mgt (Dr. Nidhi) R.19 </td>
<td>IT (Ms. Monila Jain) R.17 </td>
</tr>
<tr>
<th>Tuesday </th>
<td>C.Law (Dr. Renu Jain) R.19 </td>
<td>IBE (Dr. Prativindya) R.18 </td>
<td> </td>
<td>Pro. Mgt (Dr. Nidhi) R.19 </td>
<td>IT (Ms. Monila Jain) R.17 </td>
</tr>
<tr>
<th>Wednesday </th>
<td>Per.Devel. (Dr. Nidhi) R.19 </td>
<td>IBE (Dr. Prativindya) R.18 </td>
<td> </td>
<td>Cyber Sec. (Dr. Prativindya) R.19 </td>
<td>Pro. Mgt (Dr. Nidhi) R.17 </td>
</tr>
<tr>
<th>Thursday </th>
<td>Per.Devel. (Dr. Nidhi) R.19 </td>
<td>IBE (Dr. Prativindya) R.18 </td>
<td> </td>
<td>Cyber Sec. (Dr. Prativindya) R.19 </td>
<td>Pro. Mgt (Dr. Nidhi) R.17 </td>
</tr>
<tr>
<th>Friday </th>
<td>Per.Devel. (Dr. Nidhi) R.19 </td>
<td> IT Lab (Ms. Pooja Bansal) </td>
<td>C.Law (Dr. Renu Jain) R.18 </td>
<td> </td>
<td>Cyber Sec. (Dr. Renu Jain) R.17 </td>
</tr>
<tr>
<th>Saturday </th>
<td>Per.Devel. (Dr. Nidhi) R.19 </td>
<td> IT Lab (Ms. Pooja Bansal) </td>
<td>C.Law (Dr. Renu Jain) R.18 </td>
<td> </td>
<td>Cyber Sec. (Dr. Renu Jain) R.17 </td>
</tr>
</table>
</body>
</html>
This will display:
Write a program to display your family
information with background and
other formatting.
Syntax:
<!DOCTYPE html>
<html>
<head>
<title>My Family</title>
</head>
<body background="C:\Users\Lenovo\OneDrive\Desktop\
background.j pg">
<h1 align=center>Together We Stand: A Portrait of My Family
</h1>
<hr>
<p>
My family is the foundation of my life, a close-knit and
supportive unit where every member plays a vital role. My
father is a successful businessman, whose hard work and
dedication provide for our family and inspire me daily. My
mother, a nurturing housewife, is the heart of our home—her
love and care create a warm and welcoming environment for all
of us. I am fortunate to have two elder sisters, both of whom are
married and have children. They each have two kids, who bring
immense joy and laughter to our lives. Lastly, I have a younger
brother, full of energy and curiosity, who adds a sense of fun
and mischief to our family dynamic. Together, we share love,
laughter, and a strong bond that makes our family truly special.
</p>
<center>
<img src="C:\Users\Lenovo\OneDrive\Desktop\family.avif">
</center>
</body>
</html>
This will display:
Write a program to design a web page of
our favorite leader.
Syntax:
<!DOCTYPE html>
<html>
<head>
<title>My Family</title>
</head>
<body background="C:\Users\Lenovo\OneDrive\Desktop\
bhagat singh.jpg" height="800" width="1500" text=white>
<h1 align=center>"In the Footsteps of Bhagat Singh: A Leader
Who Inspired Generations"</h1>
<hr>
<p>
Bhagat Singh’s life and legacy continue to resonate deeply, not
just as a revolutionary figure but as a symbol of unwavering
courage, selfless sacrifice, and visionary leadership. His bold
actions, fearless defiance against colonial rule, and commitment
to the cause of India’s freedom inspired an entire generation to
rise against oppression. At just 23 years old, Bhagat Singh
became an icon, showing that age was no barrier to making a
lasting impact. His deep understanding of the socio-political
landscape and his determination to fight for justice transformed
him into a beacon of hope for countless young minds. Even
decades after his martyrdom, his spirit lives on, urging us to
challenge injustice, stand up for the oppressed, and pursue the
greater good with conviction. Following in his footsteps means
not only honoring his sacrifices but also embracing his vision of
a free, equal, and just society—values that continue to inspire
people around the world today.
</p>
</body>
</html>
This will display:
Write a program to show the link of images
Syntax:
<!DOCTYPE html>
<html>
<head>
<title>link</title>
</head>
<body>
<h1 align=center>Images</h1>
<hr>
<h2>Click on the link to open image</h2>
<a href="C:\Users\Lenovo\OneDrive\Desktop\family.avif">C:\
User s\Lenovo\OneDrive\Desktop\family.avif </a> <br>
<a href="C:\Users\Lenovo\OneDrive\Desktop\bhagat
singh.jpg"> Bhagat Singh </a><br>
<a href="C:\Users\Lenovo\OneDrive\Desktop\
background.jpg">Cli ck here to Open </a>
</body>
</html>
This will display: