0% found this document useful (0 votes)
13 views3 pages

HTML Tags Usage Demonstration

The document provides an HTML file example demonstrating various HTML tags including bold, italics, underline, alignment, paragraph, text color, heading, horizontal rule, background color, line break, and preformatted text. It explains the purpose of each tag and includes sample code for implementation. Additionally, it offers a brief introduction to HTML as a markup language for web display.

Uploaded by

Aman Girdhar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

HTML Tags Usage Demonstration

The document provides an HTML file example demonstrating various HTML tags including bold, italics, underline, alignment, paragraph, text color, heading, horizontal rule, background color, line break, and preformatted text. It explains the purpose of each tag and includes sample code for implementation. Additionally, it offers a brief introduction to HTML as a markup language for web display.

Uploaded by

Aman Girdhar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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>

You might also like