IMG
The IMG element is used to embed an image into the current
document.
- src - URL of the image to embed
- alt - Alternate text that supplies a short description of the image
- longdesc - URL to a long description of the image.
- height/width - Specifies the size of the image allowing the text to
load without waiting for the image to drop into place.
- align - Specifies the object's position with respect to surrounding
text:
- bottom: the bottom of the image should be vertically
aligned with the current baseline.
- middle: the center of the image should be vertically aligned
with the current baseline.
- top: the top of the object should be vertically
aligned with the top of the current text line.
- left: deprecated
- right: deprecated
- border - Text links are underlined, graphic links have a border.
To turn the border off, set the border attribute to 0 (zero).
- hspace - horizontal whitespace between the image and the text or surrounding objects.
- vspace - vertical whitespace between the image and the text or
surrounding objects.
- usemap - use client-side image map
- ismap - use server-side image map
<STYLE TYPE="text/css">
.wdvl { float: right;
margin-right: 0 }
.stars { float: left;
margin-left: 0;
}
</STYLE>
<IMG SRC = "img-wdvl.gif"
CLASS = "wdvl"
WIDTH = 175
HEIGHT = 100
ALT = ""
BORDER = "0"
>
|
Entering the above to your style sheet will result in all
images with the property CLASS = "wdvl" being right
justified.
All images with the CLASS = "stars" will
be left justified.
Additional Resources:
HTML 4.01 Tags
|