The align attribute of the IMG element specifies the alignment of an image.
<img src="example.gif" alt="Example" align="top">
Attribute |
Value |
Explanation |
align=" " |
vertical alignment |
top |
aligns to the top |
middle |
aligns to the middle |
bottom |
aligns to the bottom (default) |
floats image |
left |
the image floats to the left (the text wraps to the right of the image) |
right |
the image floats to the right (the text wraps to the left of the image) |
The use of this attribute is deprecated. (Use CSS instead)
Please see the "stopping text wrapping" when you specified the left or right.
Example