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
align="bottom | left | middle | right | top" (transitional only)
alt="alternative text"
border="pixels" (transitional only)
class="class name(s)"
dir="ltr | rtl"
hspace="pixels" (transitional only)
id="unique alphanumeric identifier"
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)
Other Common Attributes
align="absbottom | absmiddle | baseline | texttop"
lowsrc="URL of low-resolution image"
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"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemtype="microdata type in URL format"
spellcheck="true | false"
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