EXPERIMENT -2
Q 1. Write an HTML file to demonstrate the usage of the following tags:
a. Bold
b. Italics
c. Underline
d. Alignment
e. Paragraph
f. Text color
g. Heading
h. Horizontal Rule (Hr)
i. Background Color
j. Line Break
k. Preformatted Text (Pre)
HTML
Hyper Text Markup Language, or HTML, is a set of markup symbols or codes inserted into a file
intended for display on the internet. The markup tells web browsers how words and images
should be displayed on a webpage.
CODING
<html>
<head><tittle>basics of html</tittle></head>
<body>
<pre>it hepls to present the text as it is while coding.
<b>BOLD TAG- the bold tag helps us to format the text to make it appear in a bold
form. It is a container tag.</b>
<i>ITALICS TAG- this tag helps us to italisize the text on the website. it is a
container tag.</i>
<u>UNDERLINE TAG- this tag helps us to underline the required text. it is a
container tag.</u>
<p>PARAGRAPH TAG- this tag enables us to write in a paragraph. it is a contaier
tag.</p>
<h1>HEADING TAG- used for headings</h1>
<hr/> it is used to insert horizontal break in a html page.it is an empty tag.
<br/> it is an empty tag used for line breaks.
</pre>
</body>
</html>