[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
HTMLSPEC-IMG

Img

Usage

A text-level element used to specify an image to be placed in the current region of a web document.

Attributes

src="imageURL" (required)


Specifies the web location of the image to be placed in the web document.

alt=""


Specifies alternate text for the image which is used if browsers do not support image displays. Also, used as a balloon tip if the visitors hovers over the image.

		
align="left | right | top | middle | bottom" (bottom by default)


Specifies where the image should occur with respect to its surrounding text.

width=""


Specifies the width of the image to be placed in the web document.

height=""


Specifies the height of the image to be placed in the web document.

space="#"


Specifies the number of pixels to be included to the left and right of the image. (default = 2)

vspace="#"


Specifies the number of pixels to be included to the top and bottom of the image. (default = 2)

border="#"


Specifies the width of the border when the image is described as a hyperlink. (default=2, no border=0)

		
ismap=""


Specifies the name of an image map for the image using a format of "#mapName" or "URL#mapName".

Code Tip

Specifying width and height values for an image seems to download the image at a faster rate than nondimesioned images because it reserves browser space for the image. Also, when using a small image as a bullet for a listing of text, the align="middle" attribute value will work well.

Live Example

<html>
<head><title>Image Document Example</title></head>
<body>
<a href="/index" target="_blank"><img src="compLogo.gif" width="300" height="100" alt="Company Logo" border="0" align="middle"></a>This is the company logo.
</body>
</html>


HTML Tags Center

last edited (April 12, 2004) by leeos, Number of views: 1563, Current Rev: 5 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.