Page 87 - DCAP408_WEB_PROGRAMMING
P. 87

Unit 3: Text Formatting




          <U> Element                                                                           Notes

          The <U> element defines text that should be shown with a line underneath it. It can be nested
          with other logical or physical elements but some browsers will respect only the innermost tag.


                 Example:
          <BODY>
                 Compare  <U>underlined  text</U>  with  normal  text.
          </BODY>
          …..is rendered similar to…..




















             Notes  Avoid using <U> element; use logical elements. For example, to emphasize use EM
             or STRONG. In HTML 4.0, the U element is deprecated .

          <TT> Element

          The <TT> element defines text that should be shown in a fixed width font. It can be nested with
          other  logical or physical elements, but some browsers will  respect only the innermost tag.
          (Typically rendered in monospaced font)


                 Example:
          <BODY>
          Compare  <TT>monospaced  font</TT>  with  normal  font.
          </BODY>
          …..is rendered similar to…..


















                                           LOVELY PROFESSIONAL UNIVERSITY                                   81
   82   83   84   85   86   87   88   89   90   91   92