Page 83 - TechPluse_C7_Flipbook
P. 83
The <HR> Tag
The Horizontal ruler tag is written as <HR>. This tag is used when you want to divide your web
page into different sections. It is also used when you want to draw a line between two paragraphs.
It is an empty tag. It gives a horizontal ruler (line) on the page and then the next element will be
shown in a new line after the ruler.
The <HR> tag has following attributes:
WIDTH: It displays the horizontal ruler of the specified width in pixels or in percentage.
<hr width="550"> or <hr width="80%">
SIZE: It controls the height or the thickness of the horizontal ruler.
<hr size="4">
COLOR: It is used to apply the background color.
<hr color="pink">
ALIGN: It is used to align the horizontal ruler left, right and center.
<hr align="right">
The <B> Tag
The Bold tag is written as <B>. This tag is used to give bold effect to your text. You need to tell
the web browser when to start using the bold effect and where to stop using the bold effect. It
is a container tag and used in pair as <B> and </B>.
The <I> Tag
The Italic tag is written as <I>. This tag is used to give italic effect to your text. You need to tell
the web browser when to start using the italic effect and where to stop using the italic effect. It
is also a container tag and used in pair as <I> and </I>.
The <U> Tag
The Underline tag is written as <U>. This tag is used to underline your text. You need to tell the
web browser when to start underlining and where to stop underlining the text. It is a container
tag and used in pair as <U> and </U>.
Following HTML web page uses the <B>, <I> and <U> tags.
<html>
<head>
<title> Applying styles </title>
</head>
<body>
<h1>The uses of Bold, Italic and Underline tag </h1>
HTML—An Introduction 81

