HTM45


BACK

DESCRIPTION

OUTPUT

SOURCE CODE






DESCRIPTION:

      VSPACE � sets the vertical space in pixels above and below the image.
SYNTAX: <IMG SRC = image_filename VSPACE = pixel>

      HSPACE � sets the horizontal space in pixels beside the image.
SYNTAX: <IMG SRC = image_filename HSPACE = pixel>


..Back to the top..



OUTPUT:


HTM45. A Web page with scaled images

Web page with a scaled images

“A Text aligned middle
This text is place 15 pixels
below the image
“A Text aligned middle
This text is place 15 pixels
below the image


..Back to the top..



SOURCE CODE:



<HTML>
<HEAD>
<TITLE>A Web page with scaled images</TITLE>
</HEAD>
<BODY>
<H2><B><CENTER><FONT COLOR = blue>
Web page with a scaled images
</FONT></CENTER></B></H2>
<!-- include the first image without scaling-->
<IMG SRC = l.jpg ALT = �A GIF image without scaling� BORDER = 5 ALIGN = center HSPACE = 10 VSPACE = 15 WIDTH = 100 HEIGHT = 125>
Text aligned middle<BR>
This text is place 15 pixels<BR>
below the image<BR>
<!-- include the second image with 50% scaling-->
<IMG SRC = t.jpg ALT = �A GIF image with 50% scaling� BORDER = 5 ALIGN = center HSPACE = 10 VSPACE = 15 WIDTH = 100 HEIGHT = 125>
Text aligned middle<BR>
This text is place 15 pixels<BR>
below the image<BR>
</BODY>
</HTML>


..Back to the top..