Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 15 - 2619_PlusGPT V2.1_C-7
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>
                                                                                          Using heading tag
                     </body>
                     </html>
                     When you view the preceding web page in the web browser, the given output appears:
                          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>
                     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>

                                                                                                  Introduction to HTML  13

| 10 11 12 13 14 15 16 17 18 19 20 |