Page 29 - Modular_V1.1_Flipbook
P. 29

03                              FORMATTING A


                                                                                                WEB PAGE














                                 Your Aim

                                 to learn about:

                                    l    The <Hn> Tag                  l    The <BR> Tag
                                     l    The <HR> Tag                  l    The <B> Tag
                                      l    The <I> Tag                   l    The <U> Tag
                                      l    The <SUP> Tag                  l    The <SUB> Tag
                                       l    The <FONT> Tag                  l    The <CENTER> Tag
                                        l    Designing a Web Page


                 In the previous chapter, you have learnt about basic concepts of HTML. In this chapter, you will
                 read about more HTML tags which are used for formatting a web page.

                     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


                                                                                          Formatting a Web Page   27
   24   25   26   27   28   29   30   31   32   33   34