Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 26 - CoreGPT(Podar)_Flipbook_C8
P. 26

    The <Body> tag has the following attributes:

                          BGCOLOR: This attribute defines a colour to the background of your web page. It can be
                          used as under:
                           <BODY BGCOLOR="red">
                          TEXT: This attribute defines a colour to the text of your web page. It can be used as under:

                           <BODY TEXT="blue">
                          BACKGROUND: This inserts the image as the background of the web page:
                           <BODY BACKGROUND="lily.jpg">

                      Different attributes can be used simultaneously like this:
                             <BODY BGCOLOR="red" TEXT="white">
                      The <Hn> Tag

                      Every chapter in a book has various headings and sub-headings. These are known as levels of
                      headings. The heading tags are used to give similar effect to your web page. These are container
                      tags with a start tag and an end tag. HTML can define up to 6 levels of headings from h1 to h6.
                      The h1 is the first level of heading and the h6 is the last level of heading/sub-heading. Heading
                      tags have ALIGN attribute.

                      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:

                      <html>
                      <head> <title> Example of Heading </title> </head>
                      <body>
                      <center>

                      <H1> This is heading 1 </H1>
                      <H2> This is heading 2 </H2>
                      <H3> This is heading 3 </H3>

                      <H4> This is heading 4 </H4>
                      <H5> This is heading 5 </H5>
                      <H6> This is heading 6 </H6>
                      </center>
                      </body>

                      </html>                                                         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.

                     24     Premium Edition-VIII

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