HTML基础------标签

HTML段落

HTML 段落是通过 <p> 标签进行定义的。

例子:

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

属性:

align
align 属性规定标题的水平对齐方式。

例子:

居中对齐
      <h1 align="center">This is heading 1</h1>

右对齐
       <h1 align="right">This is heading 1</h1>

左对齐(默认)
       <h1 align="left">This is heading 1</h1>

对行进行伸展    
       <h1 align="justify">This is heading 1</h1>
       像排版一样,段落两端对齐.

猜你喜欢

转载自blog.csdn.net/AsukaShin/article/details/86629878