Friday, 17 August 2007
/ Kshitij Ahuja
|
Everybody uses images their web pages. Images enhance the look of web page and more importantly images deliver better and quick understanding of the concept of your website/webpage. Let get into the use of images on your web page.
HTML Image element is used for displaying images in a document. Image Tag The <img> tag defines the image. This It has no closing tag. SRC Attribute The SRC attribute specified the location of the image file that is to be displayed in the document. It can have a relative or absolute path, i.e. a direct file name like File.gif or full URL. The syntax of defining an image: <img src="url"> Alt Attribute This attribute specifies the "alternate text" for an image. The value of the alt attribute is generally some text or some keywords that describe the web page or document's contents : <img src="image.gif" alt="This is an image file"> Image Tags | Tag | Description | <img> <map> <area> | Defines an image Defines an image map Defines a clickable area inside an image map | |