Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

<IMG>

The IMG element is the primary method for including graphics onto your web page. The graphics may be encoded using various different formats with the most popular being JPeg and GIF.

In order to do simple animation, the GIF standard supports simple animation which you may place on your web page using the IMG element.

Attributes

Attribute Description
ID Identifies this tag to reference in script (program code)
CLASS Define the class used to render this element (defined by a style sheet)
TITLE A title that is associated with the element (displayed as a tooltip in Internet Explorer)
SRC A URI which indicates the location of the image resource. This may be a virtual pathname such as /images/smile.gif or a relative path such as ../../images/smile.gif
ALT Define alternate text to show in place of the image (for non-graphical web browers)
NAME Defines a name to associate with the element for the Document Object Model (DOM) for referencing through client-side scripting (such as Javascript)
WIDTH Width of the image in pixels. Specifying the width and height helps browsers render the page quickly without waiting for all of the images to be downloaded
HEIGHT Height of the image in pixels.
USEMAP Contains the URI for an "image map" resource indicating the different regions which may be clicked and the resources they link to
ISMAP This attribute must be present if your image is intended to be used as an "image map"

Example

<IMG SRC="/img/index_01.gif" WIDTH="175" HEIGHT="62" ALT="Welcome to ASP Nut!">

Renders As:

Welcome to ASP Nut!

Compatibility

HTML 4.01

Return to HTML Tag Reference Overview

Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"Watching football is like watching pornography. There's plenty of action, and I can't take my eyes off it, but when it's over, I wonder why the hell I spent an afternoon doing it." - Luke Salisbury

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.