HTML Aligning Text

To aligning the text in a html file, we can use the css text-align property.The codes are given below.

* Open your notepad.
* Write the codes in it.

<html>
<body>

<p style="text-align:left;">Left side </p>
<p style="text-align:center;">Center</p>
<p style="text-align:right;">Right side</p>

</body>
</html>

* Save it as text_align.html
* Open it in any browser.

**See the HTML Formatting Codes