Page 31 - Modular_V1.1_Flipbook
P. 31
THE <BR> TAG
The <BR> tag is used when you want to start a new line, but do not want to start a new paragraph.
This means that you want your text to come in next line without leaving a blank line in between.
This tag forces a line break wherever you will place it. It is an empty tag. It is used as under:
<p align=“center”> You use line <br> break tag to start a <br> new line </p>
It will be shown on your web page as under:
You use line
break tag to start a
new line
THE <HR> TAG
The <HR> 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 <B> 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 <I> 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 <U> 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.
Formatting a Web Page 29

