To change the alignment of text in HTML, you can use the CSS text-align property. Here are the different values for text-align property that you can use to align your text:
- text-align: left - aligns text to the left of the container
- text-align: center - centers the text horizontally within the container
- text-align: right - aligns text to the right of the container
- text-align: justify - justifies the text within the container, stretching the words so that they fill the entire width of the container.