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

HTML horizontal alignment attribute align

黄舟
Release: 2016-12-21 16:03:09
Original
3694 people have browsed it

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!


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template