Name
<img> — NN 2, 3, 4, 6 MSIE 2, 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5
Synopsis
<img> (no end tag)
Places a graphic on the page.
Attributes
-
align=
type
Deprecated. Specifies the alignment of an image using one of the following attributes:
Type |
Resulting alignment |
---|---|
|
Navigator 3.0 + and Internet Explorer 4.0 + only. Aligns the bottom of the image with the bottom of the current line. |
|
Navigator 3.0 + and Internet Explorer 4.0 + only. Aligns the middle of the image with the middle of the current line. |
|
Navigator 3.0 + and Internet Explorer 4.0 + only. Aligns the bottom of the image with the baseline of the current line. |
|
Aligns the bottom of the image with the text baseline. This is the default vertical alignment. |
|
According to the W3C specification, this centers the image
horizontally on the page; however, in practice, browsers treat it the
same as |
|
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. |
|
Navigator only. Aligns the top of the image with the ascenders of the text line. An ascender is the part of a lowercase letter (like “d”) that rises above the main body of the letter. |
|
Aligns the top of the image with the top of the tallest object on that line. |
-
alt=
text
Required. ...
Get Web Design in a Nutshell, 2nd 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.