HTML and CSS Reference
In-Depth Information
<img>
Function
Inserts an image into a document
align
,
alt
,
border
,
class
,
controls
,
dir
,
dynsrc
,
height
,
hspace
,
id
,
ismap
,
lang
,
longdesc
,
loop
,
lowsrc
,
name
,
onAbort
,
onClick
,
onDblClick
,
onError
,
onKeyDown
,
onKeyPress
,
onKeyUp
,
onLoad
,
onMouseDown
,
onMouseMove
,
onMouseOut
,
onMouseOver
,
onMouseUp
,
src
,
start
Attributes
,
style
,
title
,
usemap
,
vspace
,
width
None in HTML;
</img>
or
<img ... />
in
XHTML
End tag
Contains
Nothing
Used in
text
The format of the image itself is not defined by the HTML or XHTML
standard, although the popular graphical browsers support most common
formats like GIF, PNG, and JPEG images. The standards don't specify or
restrict the size or dimensions of the image, either. Images may have
any number of colors as allowed by their format, but how those colors
are rendered is highly browser dependent.