Home >Web Front-end >HTML Tutorial >HTML horizontal alignment attribute align

HTML horizontal alignment attribute align

黄舟
黄舟Original
2016-12-21 16:03:093695browse

As introduced earlier, the

tag can control the center display of text, but it cannot control left or right alignment.

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:



align attribute


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!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn