HTML » Tags » img

Version: 2.0, 3.2, 4.0

Compability: Explorer 4, 5  Netscape 4, 6

Syntax:
<img>

The <img> tag is used to insert a graphic or photographic image directly into the flow of text and other images. No line breaks or carriage returns are automatically inserted before or after the image. You can use attributes and style sheets to effect an appearance and presentation of images and text that suits your needs.

This tag can be placed in an a element to provide a clickable image for a hyperlink. A border will be automatically drawn around all four sides of an image used as a link. You can remove the border using style sheets or the border attribute.
 
The exact display of an image is very browser dependent.
 
There is no closing tag.
 

Examples

Code:
<img src="/images/guru.gif" align="middle" alt="The Guru" border="2">
Output:
The Guru Devguru logo
Language(s): HTML

See Also: