Name
<img>
Synopsis
<img>
Insert an image into the current text flow.
Attributes
-
align
=type
Align the image to either the
top
,middle
,bottom
(default),left
, orright
of the text in the line. For Netscape Navigator, additionally align to thetexttop
,absmiddle
,absbottom
, orbaseline
of the text.-
alt
=text
Provide descriptive text for nonimage-capable browsers, tool tips, telephone browsers, and search engines.
-
border
=n
Set the pixel thickness of the border around images contained within hyperlinks.
-
controls
Add playback controls for embedded video clips.
-
dynsrc
=url
Specify the URL of a video clip to be displayed.
-
height
=n
Specify the height of the image in pixels.
-
hspace
=n
Specify the space, in pixels, to be added to the left and right of the image.
-
ismap
Indicate that the image is mouse-selectable when used within an
<a>
tag.-
longdesc
=url
Provide the URL of a document describing the image.
-
loop
=value
Set the number of times to play the video;
value
may be an integer or the valueinfinite
.-
lowsrc
=url
Specify a low-resolution image to be loaded by the browser first, followed by the image specified by the
<src>
attribute.-
src
=url
Specify the source URL of the image to be displayed (required).
-
name
=name
Provide a name for the image for use by JavaScript.
-
onabort
=applet
Provide an applet to be run if the loading of the image is aborted.
-
onerror
=applet
Provide an applet to be run if the loading of the image is unsuccessful.
-
onload
=applet
Provide an ...
Get Webmaster in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.