Page 110 - DCAP512_WAP_AND_WML
P. 110

WAP & WML                                                        Sarabjit Kumar, Lovely Professional University




                    Notes                                  Unit 8: Using Images

                                     CONTENTS

                                     Objectives
                                     Introduction
                                     8.1  Using Image and Icons
                                          8.1.1  Image Restrictions
                                     8.2  Using Localscr

                                     8.3  Using Images Efficiently
                                          8.3.1  How to Batch Edit, Resize and Convert WAP Images
                                     8.4  Summary

                                     8.5  Keywords
                                     8.6  Review Questions
                                     8.7  Further Readings

                                  Objectives

                                  After studying this unit, you will be able to:
                                      Describe the use of images and icons
                                      Demonstrate image restriction
                                      Recognize using localscr images
                                      Explain using images efficiently

                                  Introduction


                                  In this unit we will write application of images in WML. We can use the tag to display the image
                                  in our document. The image appears wherever tag is placed within the text.

                                  8.1 Using Image and Icons

                                  In this unit we will write application that images. We can use the <img> tag to display the image
                                  in our document. The image appears wherever <img> tag is placed within the text. Some cellular
                                  does not support image, in that case we can use the alt property of <img> to display the text.

                                  Syntax:
                                  <img alt=”text” src=”url” localsrc=”icon”/>
                                     Attribute    Functionality
                                     alt          Text to be displayed when cellular device does not support image or the image
                                                  was not available.
                                     src          URL of the image.
                                     localsrc     The name of a known icon.






          104                               LOVELY PROFESSIONAL UNIVERSITY
   105   106   107   108   109   110   111   112   113   114   115