HTML and CSS Reference
In-Depth Information
<img> (Image)
This element indicates a media object to be included in an (X)HTML document. Usually, the
object is a bitmap graphic image, but some implementations support movies, vector
formats, and animations.
Standard Syntax
<img
align="bottom | left | middle | right | top" (transitional only)
alt="alternative text"
border="pixels" (transitional only)
class="class name(s)"
dir="ltr | rtl"
height="pixels"
hspace="pixels" (transitional only)
id="unique alphanumeric identifier"
ismap="ismap"
lang="language code"
longdesc="URL of description file"
name="unique alphanumeric identifier"
src="URL of image"
style="style information"
title="advisory text"
usemap="URL of map file"
vspace="pixels" (transitional only)
width="pixels">
Other Common Attributes
align="absbottom | absmiddle | baseline | texttop"
lowsrc="URL of low-resolution image"
tabindex="number"
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
draggable="true | false | auto"
hidden="hidden"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemscope="itemscope"
itemtype="microdata type in URL format"
spellcheck="true | false"
tabindex="number"
Attributes Defined by Internet Explorer
accesskey="key" (5.5)
datafld="name of column supplying bound data" (4)
datasrc="id of data source object supplying data" (4)
Search WWH ::




Custom Search