Page 81 - DCAP408_WEB_PROGRAMMING
P. 81

Unit 3: Text Formatting




                                                                                                Notes

















             Notes  Don’t use these tags unless you are sure your audience’s browsers support them.

          <KBD> Element

          The <KBD> element indicates characters that should be typed in at a keyboard. <KBD> is rendered
          in a fixed width font. Typically this is used in instruction manuals.


                 Example:
          <BODY>
          Finally, type <KBD>logout</KBD> and press the return key.
          </BODY>
          …..is rendered similar to…..




















             Notes  Use the <KBD> element for fixed strings only. To indicate input which varies from
             one case to another, use the <VAR> element.

          <VAR> Element

          To indicate that a piece of text (typically, a word) is a variable, a “placeholder”, i.e., a generic
          notation to be replaced by different actual expressions.








                                           LOVELY PROFESSIONAL UNIVERSITY                                   75
   76   77   78   79   80   81   82   83   84   85   86