Page 22 - PortGPT_V2.1_C7_Flipbook
P. 22

The <P> Tag


                  The <P> tag defines 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.

                  Align Attribute

                  A paragraph can be aligned using the align attribute. Various values of the align attribute are given in
                  the table below.



                      Value                 Description                                  Example

                    Left         Left-aligns the text.                <P Align = “Left”> Text goes here. </P>

                    Right        Right-aligns the text.               <P Align = “Right”> Text goes here. </P>

                    Center       Center-aligns the text.              <P Align = “Center”> Text goes here. </P>


                                 Stretches the lines so that each line
                    Justify                                           <P Align = “Justify”> Text goes here. </P>
                                 has an equal width.


                       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 tag is also known as line break. It is mainly used when 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.































                  20    Premium Edition-VII
   17   18   19   20   21   22   23   24   25   26   27