Page 93 - iPlus_Ver_2.0_class_6
P. 93

The ALIGN attribute allows you to align your heading to left side, center or right side of your web
                 page. It can be used as under:

                 <h1 align=“left”> aligns towards left of webpage </h1>
                          <h2 align =“center”> aligns towards center of webpage </h2>

                                        <h3 align=“right”> aligns towards right of webpage </h3>
                 The Paragraph Tag

                 The Paragraph tag is written as <P>. This tag defines the start and end of a paragraph in the text. It
                 is both a container as well as an empty tag. Whenever you want to start a new paragraph, you can

                 start the paragraph tag using <P> without closing the previous paragraph tag. In order to avoid
                 confusion, it is advised to use this tag as a container tag starting with the <P> tag and ending with
                 the </P> tag. The paragraph tag automatically inserts a blank line between two paragraphs.
                 The <P> tag uses the ALIGN attribute.

                 The ALIGN attribute can take three values:
                 •  Left: It aligns the text to the left of the web page. For example,

                   <P align=”left”> Animation </P>
                 •  Right: It aligns the text to the right of the web page. For example,

                   <P align=”right”> Animation </P>
                 •  Center: It aligns the text to the center of the web page. For example,

                   <P align=”center”> Animation </P>

                 The Line Break Tag

                 The Line Break tag is written as <BR>. This 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 the next line
                 without leaving a blank line in between. This tag forces a line break wherever you 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 Horizontal Ruler 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 the following attributes:
                 •  WIDTH:  It displays the horizontal ruler of the specified width in pixels or in percentage.




                                                                                                                  91
                                                                                        HTML—An Introduction
   88   89   90   91   92   93   94   95   96   97   98