Name
<img> — NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
Synopsis
<img>
Places a graphic on the page.
Attributes
-
align=
type
Specifies the alignment of an image using one of the following attributes:
Type |
Resulting Alignment |
---|---|
absbottom |
Navigator 3.0 & 4.0 and Internet Explorer 4.0 only. Aligns the bottom of the image with the bottom of the current line. |
absmiddle |
Navigator 3.0 & 4.0 and Internet Explorer 4.0 only. Aligns the middle of the image with the middle of the current line. |
baseline |
Navigator 3.0 & 4.0 and Internet Explorer 4.0 only. Aligns the bottom of the image with the baseline of the current line. |
bottom |
Aligns the bottom of the image with the text baseline. This is the default vertical alignment. |
center |
According to the W3C Spec, this centers the image horizontally on the
page; however, in reality, browsers treat it the same as
|
left |
Aligns image on the left margin and allows subsequent text to wrap around it. |
middle |
Aligns the text baseline with the middle of the image. |
right |
Aligns image on the right margin and allows subsequent text to wrap around it. |
texttop |
Navigator only. Aligns the top of the image with the ascenders of the text line. |
top |
Aligns the top of the image with the top of the tallest object on that line. |
-
alt=
text
Provides a string of alternative text that appears when the image is not displayed.
-
border=
number
Specifies the width (in pixels) of the border that surrounds a linked image. It is standard ...
Get Web Design in a Nutshell 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.