Easy Tutorial
❮ Jsref Tostring Number Met Document Removeeventlistener ❯

Image align Attribute


Definition and Usage

The align attribute sets or returns the value of the image's align attribute.

The align attribute specifies the alignment of the image with inline content.

Syntax

The align attribute can have the following values:

Value Description
left Aligns the image to the left
right Aligns the image to the right
middle Centers the image
top Aligns the image to the top
bottom Aligns the image to the bottom

Browser Support

All major browsers support the align attribute.


Example

The following example aligns the image to the right relative to the surrounding text:


❮ Jsref Tostring Number Met Document Removeeventlistener ❯