How to set text alignment
Example analysis:
The text-align attribute specifies the horizontal alignment of the element's text.
You can set the following horizontal alignment:
●Left: Arrange the text to the left. Default: determined by the browser.
● Right: Arrange the text to the right.
● Center: Arrange the text to the middle.
●Justify: To achieve the effect of aligning text on both ends.