The text-align property is used to align the text of a document. Possible values are left, right, center, justify.
Example
You can try to run the following code to implement text-align property:
<html> <head> </head> <body> <p style = "text-align:right;"> This will be right aligned. </p> <p style = "text-align:center;"> This will be center aligned. </p> <p style = "text-align:left;"> This will be left aligned. </p> </body> </html>