哪个 HTML 属性用于证明内容的合理性?
HTML 属性用于证明内容是对齐属性。
标签的 align 属性用于对齐网页上的文本。这可以通过将值分配给对齐的属性来完成。
文本的对齐方式以这样一种方式对齐文本,即它从网页的左右边缘占据相等的水平空间,从而改善其外观。
句法:
示例 1:本示例显示网页上不对齐的内容。
HTML
Not Justified
The content is not justified
Welcome to Geeks for Geeks. It is a
computer science portal for geeks.
It contains well written, well
thought articles. We are learning
how to justify content on
a web page.
HTML
Justified content
The content is justified
Welcome to Geeks for Geeks. It is
a computer science portal for geeks.
It contains well written, well
thought articles. We are learning
how to justify content on
a web page.
输出:
示例 2:本示例描述了使用 align 属性在网页上对齐的内容。
HTML
Justified content
The content is justified
Welcome to Geeks for Geeks. It is
a computer science portal for geeks.
It contains well written, well
thought articles. We are learning
how to justify content on
a web page.
输出:
这样 align 属性被用来证明网页上的内容。