Share
Text Alignment
The text-align property specifies the horizontal alignment of text in an element:
Example:
<html>
<body>
<h1 style="text-align:center">This is a heading</h1>
<p>The heading above is aligned to the center of this page.</p>
</body>
</html>
The style attribute makes the old "align" attribute obsolete.