Name
img
Synopsis
<img />
Places an image on the page.
Attributes
Core(id
,
class
, style
, title
),
Internationalization,
Events
-
align="
type
"
Deprecated. Specifies the alignment of an image using one of the following values:
Type |
Resulting alignment |
---|---|
|
Aligns the bottom of the image with the text baseline. This is the default vertical alignment. |
|
Aligns the image on the left margin and allows subsequent text to wrap around it. |
|
Aligns the text baseline with the middle of the image. |
|
Aligns the image on the right margin and allows subsequent text to wrap around it. |
|
Aligns the top of the image with the top of the tallest object on that line. |
-
alt="
text
"
Required. Provides a string of alternative text that appears when the image is not displayed. Internet Explorer 4.0+ and Netscape 6 on Windows display this text as a “tool tip” when the mouse rests on the image.
-
border="
number
"
Deprecated.Specifies the width (in pixels) of the border that surrounds a linked image.
-
height="
number
"
Specifies the height of the image in pixels. It is not required, but is recommended to speed up the rendering of the web page.
-
hspace="
number
"
Deprecated. Specifies (in number of pixels) the amount of space to leave clear to the left and right of the image.
-
ismap
Indicates that the graphic is used as the basis for a server-side image map (an image containing multiple hypertext links).
-
longdesc="
URL
"
Specifies a link to a long description of the image or an image ...
Get Web Design in a Nutshell, 3rd 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.