You can use four types of alignment in CSS and two additional parameters. The text-align property specifies the horizontal alignment of text in an element. Syntax: text-align: left|right|center|justify|initial|inherit; Inherit sets align inherited from the parent element (parent element in CSS). It formats text alignment to the left align, right align, centred, and justified. Initial sets the property to the initial value (the initial for text-align is left). Read more about it on the W3C website.