Page 81 - TechPluse_C7_Flipbook
P. 81

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>                                                         Using Heading Tag

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



                                                                                        HTML—An Introduction         79
   76   77   78   79   80   81   82   83   84   85   86