Page 90 - DCAP408_WEB_PROGRAMMING
P. 90

Web Programming




                    Notes          <SUB> Element

                                   The <SUB> element defines text that should be displayed slightly below the normal text level,
                                   often so that it the text is vertically centered with respect to normal text baseline, and possibly
                                   in smaller font.


                                          Example:
                                   <BODY>
                                   Let  us  form  the  sum  of  all  x<SUB>i</SUB>’s,  ie
                                   x<SUB>1</SUB>  +  x<SUB>2</SUB>  +  ...  +  x<SUB>n</SUB>.
                                   </BODY>
                                   …..is rendered similar to…..






















                                     Notes  Since this element is new, support for it is not universal. Some browsers simply
                                     ignore it, displaying e.g.,  a<SUB>1</SUB> as  a1. And  naturally, text-only  browsers
                                     cannot truly support <SUB>.  Internet Explorer ignores <SUB> elements after  nesting
                                     level of two.

                                   <SUP> Element

                                   The <SUP> element defines text that should be displayed slightly above the normal text level
                                   and possibly in smaller font.


                                          Example:
                                   <BODY>
                                   The  expression:
                                   a<SUP>b<SUP>c</SUP></SUP>
                                   means  a<SUP>(b<SUP>c</SUP>)</SUP>
                                   </BODY>
                                   …..is rendered similar to…..







          84                                LOVELY PROFESSIONAL UNIVERSITY
   85   86   87   88   89   90   91   92   93   94   95