HTML The align attribute HTML tag Example A right-aligned : Try it » Browser support All major browsers support the align attribute. Definition and Usage HTML5 does not support the align attribute. Please use CSS instead. In HTML 4.01, The align attribute is deprecated. The align attribute specifies The alignment of the element relative to surrounding elements. The element is an inline element (it does not insert a new line in the page), which means that text and other elements can wrap around it. Therefore, it is useful for specifying the alignment relative to surrounding elements. Compatibility notes In HTML 4.01, The align attribute is deprecated. Please use CSS instead. CSS syntax: CSS example: float an element to the right In our CSS tutorial, you will see more about The float attribute details. Syntax Attribute values Value Description left Align the object to the left. right Align the object to the right. middle Align the object to the center. top Align the object to the top. bottom Align the object to the bottom. HTML tag