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

absbottom

Navigator 3.0 + and Internet Explorer 4.0 + only. Aligns the bottom of the image with the bottom of the current line.

absmiddle

Navigator 3.0 + and Internet Explorer 4.0 + only. Aligns the middle of the image with the middle of the current line.

baseline

Navigator 3.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 specification, this centers the image horizontally on the page; however, in practice, browsers treat it the same as align=middle.

left

Aligns the 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 the 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. An ascender is the part of a lowercase letter (like “d”) that rises above the main body of the letter.

top

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.