horizontal alignment in a section


<div align="">

Browser
Internet Explorer Firefox Opera
Type
Block-level Deprecated

The align attribute of the DIV element specifies the horizontal text alignment in a section.


<div align="center">centering text</div>


Attribute Value Explanation
align=" " left aligns to the left
center aligns to the center
right aligns to the right

The use of this attribute is deprecated. (Use CSS instead)

Tips and Notes

Use CSS instead of deprecated HTML. Please see the "Related Document" for details on CSS.


Example

<div align="left">Aligns to the left</div>
<div align="center">Aligns to the center</div>
<div align="right">Aligns to the right</div>
Output
Aligns to the left
Aligns to the center
Aligns to the right