Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 27 - CoreGPT(Podar)_Flipbook_C8
P. 27

    The <P> tag use 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>

                     Following web page is created by using the <P> tag:

                     <html>
                     <head>

                     <title> Example of Paragraph</title>
                     </head>

                     <body>
                     <p> First paragraph of content</p>

                     <p> Second paragraph of content</p>
                     <p> Third paragraph of content</p>

                     <p> Fourth paragraph of content</p>
                     </body>

                     </html>
                     Output of the preceding web page is as follows:

                                                                 Using <P> tag
                     The <BR> 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 next line
                     without leaving a blank line in between.

                                                                                              Introduction to HTML       25

| 22 23 24 25 26 27 28 29 30 31 32 |