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. ...
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