Page 15 - PlusGPT_V2.1_C7_Flipbook
P. 15

Let's create a web page by using the heading tags:

                 <html>
                 <head>
                 <title> Example of Heading </title>
                 </head>
                 <body>
                 <h1> This is a heading 1 </h1>
                 <h2> This is a heading 2 </h2>
                 <h3> This is a heading 3 </h3>
                 <h4> This is a heading 4 </h4>
                 <h5> This is a heading 5 </h5>
                 <h6> This is a heading 6 </h6>
                 </body>
                 </html>
                 When you view the preceding web page in the web browser, following output appears:





















                                                           Using heading tag

                      The <P> Tag

                 The Paragraph tag is written as <P>. This 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. 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>


                                                                                              Introduction to HTML  13
   10   11   12   13   14   15   16   17   18   19   20