Page 91 - DCAP512_WAP_AND_WML
P. 91

Unit 6: Card Navigation




          The default paragraph alignment is left and is utilized in  most classes.  Modes can be set  in  Notes
          addition to alignments.
          The mode “nowrap” must be used sparingly since various devices handle  it differently  and
          often not well. To aid with paragraph layout, we can also use the non-breaking space   and
          soft hyphen &syt; for better control of when and where words are across lines of text.




             Did u know?  What is non-breaking space requirements?
             The non-breaking space requires two words be kept together on the same line. One use
             would be for software names and their version number.
          The soft hyphen can be added within a word to suggest the best possible place to break the word
          with a hyphen. This is particularly useful with longer words (for example, anti­ dis­
          establish & shy;ment-­ arian & shy;ism).

          6.6.1 Card Attributes


              Attributes offer further descriptions of elements.
              Cards can contain the following attributes.
                   title
                   newcontext

                   ordered
                   onenterforward
                   onenterbackward
                   ontimer

                   id
                   class
          The id Attribute
          The id attribute

              uniquely identifies the card in the deck
              is typically used in navigation
              can be used in transformation
          The is attribute assigns a name for a card. Each name must be unique within a deck. They are
          used as anchors for linking.
          The Title Attribute
          The title attribute

              is optional
              can be rendered differently by each user agent.
          <card title =”Employee”>
          Various browsers interpret this attributes in various ways. Some use it as “title bar” text while
          others will use it as the default bookmark name.



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