Page 56 - Plus V4 with Adobe class 8
P. 56

Let us use the <IMG> tag to insert an image on the web page in the following way:

        <HTML>

        <HEAD> <TITLE> Inserting Image </TITLE>
        </HEAD>
        <BODY>

        <B> Inserting image on the web page </B>
        <IMG SRC="lily.jpg"
        WIDTH="200px"

        HEIGHT="200px"
        ALIGN="right"
        BORDER="2">

        </BODY>
        </HTML>



















                                                 Image inserted with border

        Ensure that an image which we want to insert on the web page should be saved at the same location
        where we have saved our HTML file. If we want to insert an image from any other location, we need to
        provide the complete path of the image to the SRC attribute. For example, if our image is saved in the
        D: drive of computer then the path of the image will be D:\lily.jpg.


                  Factbot

          Some of the image formats supported by HTML are Joint Photographic Experts Group (JPEG), Graphics
          Interchange Format (GIF) and Portable Network Graphics (PNG).






                  Double Tap                                                Century   #Information Literacy
                                                                              21 st
                                                                              Skills
                Write any three attributes of <IMG> tag.








            54  Plus (Ver. 4.0)-VIII
   51   52   53   54   55   56   57   58   59   60   61