Page 89 - CA 165 ver 1.0 Class 10
P. 89

For example:

                   <IMG SRC =“C:\dolphin.JPG”  WIDTH=“50%”>
                   OR

                   <IMG WIDTH=“300” SRC=“C:\dolphin.JPG” >

                 HEIGHT Attribute
                 This attribute is used to specify the height of the image in pixels or percentage, in comparison to its
                 original size. Syntax to use the HEIGHT attribute of the <IMG> tag is as follows:

                   <IMG HEIGHT = “Value/Percentage”>
                 For example:

                   <IMG HEIGHT=“350” SRC=“C:\dolphin.JPG”>
                   <IMG HEIGHT=“75%” SRC=“C:\dolphin.JPG”>






















                           Image with border of
                           size 3, Width 50% and
                               Height 30%.


                 HSPACE Attribute
                 This attribute is used to set the space towards left or right margin of the image. It indicates the given
                 space between the image and the text in numbers. Syntax to use the HSPACE attribute of the <IMG> tag
                 is as follows:

                   <IMG  HSPACE = “Value”>
                 For example:

                   <IMG SRC = “C:\dolphin.JPG” HSPACE=“2” BORDER=”2”>
                 VSPACE Attribute

                 This attribute is used to set the space towards the top or bottom margin of the image. It indicates the
                 given space between the image and the text in numbers. Syntax to use the VSPACE attribute of the
                 <IMG> tag is as follows:
                   <IMG  VSPACE = “Value”>
                 For example:

                   <IMG VSPACE=“2” BORDER=“2” ALIGN=“RIGHT” SRC= “C:\dolphin.JPG”>



                                                                                            More About HTML      87
   84   85   86   87   88   89   90   91   92   93   94