As introduced earlier, the
At this time we can use the align attribute of html to control it. The align attribute has three commonly used attribute values, namely:
align="left"
align="right"
align="center"
Example:
The text is displayed on the right
The text is displayed on the left
The text is displayed in the center
The above is the HTML horizontal alignment attribute align Content, please pay attention to the PHP Chinese website (www.php.cn) for more related content!