[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
HTMLSPEC-IMG
A text-level element used to specify an image to be placed in the current region of a web document.
Attributes
Specifies the web location of the image to be placed in the web document.
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.
Specifies where the image should occur with respect to its surrounding text.
Specifies the width of the image to be placed in the web document.
Specifies the height of the image to be placed in the web document.
Specifies the number of pixels to be included to the left and right of the image. (default = 2)
Specifies the number of pixels to be included to the top and bottom of the image. (default = 2)
Specifies the width of the border when the image is described as a hyperlink. (default=2, no border=0)
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 Tags Center
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
HTMLSPEC-IMG
Img
UsageA 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
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
