IMG: Attributes
IMG:
Attributes
ALIGN
Alignment of the image with respect to the text baseline.
- `TOP' specifies that the top of the image aligns with the tallest item on the line containing the image.
- `MIDDLE' specifies that the center of the image aligns with the baseline of the line containing the image.
- `BOTTOM' specifies that the bottom of the image aligns with the baseline of the line containing the image.
Value(s)
- top
- middle
- bottom
- left
- right
Default Value
#IMPLIEDALT
Text to use in place of the referenced image resource, for example due to processing constraints or user preference.
Value(s)
CDATA
Default Value
#REQUIREDBORDER
Value(s)
CDATA
Default Value
#IMPLIEDCLASS
Value(s)
CDATA
Default Value
#IMPLIEDDIR
Value(s)
- ltr
- rtl
Default Value
#IMPLIEDHEIGHT
Value(s)
CDATA
Default Value
#IMPLIEDHSPACE
Value(s)
CDATA
Default Value
#IMPLIEDID
Value(s)
ID
Default Value
#IMPLIEDISMAP
Indicates an image map. If the ISMAP attribute is present on an <IMG> element, the <IMG> element must be contained in an <A> element with an HREF present. This construct represents a set of hyperlinks. The user can choose from the set by choosing a pixel of the image. The user agent computes the head URI by appending `?' and the x and y coordinates of the pixel to the URI given in the <A> element. For example, if a document contains:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <head><title>ImageMap Example</title> <BASE HREF="https://host/index"></head> <body> <p> Choose any of these icons:<br> <a href="/cgi-bin/imagemap"><img ismap src="icons.gif"></a>
and the user chooses the upper-leftmost pixel, the chosen hyperlink is the one with the URI `https://host/cgi-bin/imagemap?0,0'.
Value(s)
ismapDefault Value
#IMPLIEDLANG
Value(s)
NAME
Default Value
#IMPLIEDLONGDESC
Value(s)
CDATA
Default Value
#IMPLIEDNAME
Value(s)
CDATA
Default Value
#IMPLIEDONCLICK
Value(s)
CDATA
Default Value
#IMPLIEDONDBLCLICK
Value(s)
CDATA
Default Value
#IMPLIEDONKEYDOWN
Value(s)
CDATA
Default Value
#IMPLIEDONKEYPRESS
Value(s)
CDATA
Default Value
#IMPLIEDONKEYUP
Value(s)
CDATA
Default Value
#IMPLIEDONMOUSEDOWN
Value(s)
CDATA
Default Value
#IMPLIEDONMOUSEMOVE
Value(s)
CDATA
Default Value
#IMPLIEDONMOUSEOUT
Value(s)
CDATA
Default Value
#IMPLIEDONMOUSEOVER
Value(s)
CDATA
Default Value
#IMPLIEDONMOUSEUP
Value(s)
CDATA
Default Value
#IMPLIEDSRC
Specifies the URI of the image resource.
Value(s)
CDATA
Default Value
#REQUIREDSTYLE
Value(s)
CDATA
Default Value
#IMPLIEDTITLE
Value(s)
CDATA
Default Value
#IMPLIEDUSEMAP
Value(s)
CDATA
Default Value
#IMPLIEDVSPACE
Value(s)
CDATA
Default Value
#IMPLIEDWIDTH
Value(s)
CDATA
Default Value
#IMPLIEDBack to IMG
loose DTD