html practical
html practical
<html>
<head>
<title>Heading tag</title>
</head>
<body>
<h1>The Colour Purple</h1>
<h2>The Colour Purple</h2>
<h3>The Colour Purple</h3>
<h4>The Colour Purple</h4>
<h5>The Colour Purple</h5>
<h6>The Colour Purple</h6>
</body>
</html>
Program to demonstrate paragraph tag
<html>
<head>
<title>Paragraph tag</title></head>
<body>
<p align=center><b>Italy is a boot-shaped peninsula that juts out of southern
Europe into the Adriatic Sea, Tyrrhenian Sea, Mediterranean Sea, and other
waters. Its location has played an important role in its history..</b></p><br><br>
<p align=left><b><u>The sea surrounds Italy, and mountains crisscross the
interior, dividing it into regions. The Alps cut across the top of the country and are
streaked with long, thin glacial lakes. From the western end of the Alps, the
Apennines mountains stretch south down the entire peninsula.</u></b></p>
<p align=right>West of the Apennines are wooded hills that are home to many of
Italy's historic cities, including Rome. In the south are hot, dry coastlands and
fertile plains where olives, almonds, and figs are grown.<i></i></p>
</body>
</html>
Program to demonstrate list tag
<html>
<head>
<title>List tag</title></head>
<body>
<h1><i>Unordered list</i></h1>
<ul type=disc>
<b><u>Student data:</u></b><br>
<li>Name</li>
<li>Class</li>
<li>Roll No.</li></ul>
<h1><i>Ordered list</i></h1>
<ol type=i>
<b><u>Student data:</u></b><br>
<li>Name</li>
<li>Class</li>
<li>Roll No.</li></ol>
</body>
</html>
Program to demonstrate Image tag
<html>
<head>
<title>Image tag</title>
</head>
<body>
<h1><b><i><u>Adding Image</u></i></b></h1><br>
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRhDurD-
6ZcnifTXGUINbL9bEVjBNxLR-0qtg&s" alt="italy"
width="400px" height="300px">
</body>
</html>
Program to demonstrate Table tag
<html>
<head>
<title>Table tag</title>
</head>
<body>
<tr>
<th> Name</th>
<th> Class</th>
</tr>
<tr align=center>
<td> 1</td>
</tr>
<tr align=center>
<td> 2</td>
<tr align=center>
<td> 3</td>
</tr>
<tr align=center>
<td> 4</td>
</tr>
</table>
</body>
</html>
Program to demonstrate Form tag
<html>
<head><title>Form tag</title>
<body>
<b><u>Admission form</b></u><br><br>
<form>
Name<input type="text"><br><br>
City<input type="text"><br><br>
Address<textarea></textarea><br><br>
Course: <select><br><br>
<option value="B.sc">B.sc
<option value="B.A">B.A
<option value="B.BA">B.BA
<option value="B.COM">B.COM
</select><br><br>
D.O.B<input type="date"><br><br>
</form>
</body>
</head>
</html>
Program to insert image in background
<html>
<head>
<title>Background Image</title>
</head>
<left><br><br><br><br><br><br><br><br><br><br><br>
<font size=7>ITALY<br>
<font size=5>NATURE<br>
</body>
</html>
Program to demonstrate Internal link
<html>
<head>
<title>Internal link</title>
</head>
<body>
<center>
<font size=6
color=orange><b><u><i>INTERNET</i></u></b></font><br><br>
Chapter-1 <br><br>
INTRODUCTION OF INTERNET<br><br>
<a name="c2">Chapter-2</a><br><br>
Chapter-3 <br><br>
Chapter-4 <br><br>
INTERNET SECURITY<br><br>
Chapter-5 <br><br>
INTRODUCTION TO HTML<br><br>
Chapter-6 <br><br>
</body>
</html>
<head>
<title>External link</title>
</head>
<body>
</body>
</html>
<head>
<title>Marquee tag</title>
</head>
<body>
<marquee>
</marquee>
</body>
</html>
<title>Frame tag</title>
</head>
<frameset cols="40%,60%">
<frame
src="C:/Users/dell/OneDrive/Desktop/4.html">
<frame
src="C:/Users/dell/OneDrive/Desktop/2.html">
</frameset>
</html>
<head>
<title>Inline CSS</title>
</head>
<body>
</body>
</html>
Program to demonstrate Internal Style Sheet
<html>
<head>
<title>Internal CSS</title>
<style>
p{color:blue;font-size:40px;text-align:center}
</style>
</head>
<body>
<p>Carry out a random act of kindness, with no expectation of reward, safe in the
knowledge that one day someone might do the same for you</p>
</body>
</html>
Program to demonstrate External Style Sheet
<html>
<head>
<title>External CSS</title>
rel="stylesheet">
</head>
<body>
</body>
</html>
Style
body { background-color: lightblue;}
h1 {color: navy; margin-left: 20px;}