Page 151 - Computer Genius Class 06
P. 151

The <HR> Tag

                 The      tag is used  hen you  ant to di ide your  e  page into different sections.  t is also
                 used  hen you  ant to dra  a line  et een t o paragraphs.  t is an empty tag and does not need
                 an end tag.  t gi es a hori ontal ruler  line  on the page and then the ne t element  ill  e sho n
                 in a ne  line a ter the ruler. The      tag has  idth  si e  and color attri utes to modi y the
                 hori ontal ruler  line .

                 < ! D OCTYPE HTML>

                 < HTML>

                 < HEA D >
                 < TITLE>  HR Tag < / Title>

                 < / HEA D >

                 < B OD Y>

                 <p>This is the first paragraph of the tag. HTML is the standard markup language
                 for Web pages. </p>
                 <hr Size=”10” width=”80%” >

                 <p>This is the second paragraph of the tag.HTML is the standard markup language
                 for Web pages.</p>

                 <hr Size=”10” width=”80%” color=”grey”>
                 <hr Size=”10” width=”80%” color=”Red”>

                 < / B OD Y>

                 < / HTML>
















                 The <SUP> Tag

                                                                                                           2
                 The       tag is used to turn the enclosed te t into a superscript. For e ample    mc  is coded
                 as   mc sup 2  sup

                 The <SUB> Tag

                 The         tag  is  used  to  turn  the  enclosed  te t  into  a  su script.  For  e ample        is  coded
                                                                                                         2
                 as   su  2  su




                                                                                        Introduction to HTML  149
   146   147   148   149   150   151   152   153   154