Experiment 2
Experiment 2
Q) Create an HTML File for displaying a webpage with the following tags : bold, italics,
underline, alignment, paragraph, text color, headings. The file should contain a brief
description about all the tags.
• HTML tag: It is the root of the html document which is used to specify that the
document is html.
Syntax:
• Head tag: Head tag is used to contain all the head element in the html file. It
contains the title, style etc.
Syntax:
• Body tag: It is used to define the body of html document. It contains image, tables,
lists, … etc.
Syntax:
Syntax:
Syntax:
Code:
<h1>Heading 1 </h1>
<h2>Heading 2 </h2>
<h3>Heading 3 </h3>
<h4>Heading 4 </h4>
<h5>Heading 5 </h5>
<h6>Heading 6 </h6>
Syntax:
Syntax:
Syntax:
filter_none
Syntax:
• Font tag: It is used to specify the font size, font color and font-family in html
document.
Syntax:
Syntax:
<br>
Code :
<html>
<head>
</head>
<body bgcolor="orange">
</pre>
</p>
<p align="center"><font color= "black">Align feature is used to align the text in left,
center or right.</font></p>
</body>
</html>
Experiment 3
Q) Create your resume in html. Include details such as career objectives, educational
qualifications, achievements, strenghts and a recent photo.
Code :
<h2 align="center"><u>RESUME</u></h2><hr/>
<h2><u><font color="green">Objectives</u></font></h2>
<img src="https://mail.google.com/mail/u/0?
ui=2&ik=4248fc50f9&attid=0.1&permmsgid=msg-a:r-
2227906622244049571&th=166a4624f7774aaf&view=att&disp=safe&realattid=f_jnmoa1p
p0" height="164px" width="120px" alt="Aryaman Singh" border="5px" align="right">
<hr/>
<pre>
<p>
<pre>
<h2><u><font color="green">Achievements</u></font></h2><hr/>
<h2><u><font color="green">Strengths</u></font></h2><hr/>
<pre>
1) Creativity
2) Communication Skills
<h2><u><font color="green">Hobbies</u></font></h2><hr/>
<pre>
1) Music
2) Art
</body> </html>
EXPERIMENT 4
Q) Design a website entitled HTML Tutorial with links to 5 different web pages. Use the
hyperlink functionality to do this experiment.
Code :
<html>
<body bgcolor="green">
<p> you will learn the following topics in this tutorial : </font> </p>
</body>
</html>
EXPERIMENT 5
Q) Create a Nested List and insert an image of a computer on the top right of the web
page and display a marquee displaying “input and output Devices”.
Code :
<li>input Devices</li>
<ol type="i">
<li>Keyboard</li>
<li>mouse</li>
<li>joystick</li>
<li>scanner</li>
<ol type="a">
</ol>
</ol>
<li>Output Devices</li>
<ol type="i">
<li>Monitor</li>
<ol type="a">
<li>LCD</li>
<li>CRT</li>
</ol>
<li>Printer</li>
<ol type="a">
</ol>
</b>
</body></html>
EXPERIMENT 6
Q) Create an HTML webpage similar to the one displayed below. Use the nested list
functionality and also use marquee tags.
OUTPUT :
Code :
<html>
<head>
</head>
<body bgcolor="yellow">
<ol type="A">
<li>vegetables </li>
<ul>
<li>onion</li>
<li>tomato</li>
<li>radish</li>
<li>potato</li>
<li>carrot</li>
</ul>
<li>fruits</li>
<ul>
<li>apple</li>
<li>banana</li>
<li>watermelon</li>
<li>mango</li>
<li>grapes</li>
</ul>
</ol>
<ul type="circle">
<li>newspaper</li>
<li>hindustan times</li>
<li>navbharat</li>
<li>punjab kesari</li>
<li>dainik jagran</li>
<li>business times</li>
</ol>