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(see options below)Specifies the alignment of an image using one of the following values:
|
Type |
Resulting Alignment |
|---|---|
|
|
Navigator 3.0/4.0 and Internet Explorer 4.0 only. Aligns the bottom of the image with the bottom of the current line. |
|
|
Navigator 3.0/4.0 and Internet Explorer 4.0 only. Aligns the middle of the image with the middle of the current line. |
|
|
Navigator 3.0/4.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 HTML 4.0 Specification, this centers the image
horizontally on the page; however, in reality, browsers treat it the
same as |
|
|
Aligns image on the left margin and allows subsequent text to wrap around it. |
|
|
Aligns the text baseline with the middle of the image. |
|
|
Aligns 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. |
|
|
Aligns the top of the image with the top of the tallest object on that line. |
alt=textProvides a string of alternative text that appears when the image is not displayed.
border=numberSpecifies the width (in pixels) of the border that surrounds ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access