二.文本和超链接标签
1.标题标签
HTML5的标题标签是h1、h2、h3、h4、h5、h6,标签中的字母h是英文headline的简称。
作为标题,它们的重要性是有区别的,其中h1标签的重要性最高,h6最低。
<body>
<h1>h1标签效果</h1>
<h2>h2标签效果</h2>
<h3>h3标签效果</h3>
<h4>h4标签效果</h4>
<h5>h5标签效果</h5>
<h6>h6标签效果</h6>
</body>
2.对齐方式
align="对齐方式"
属性 | 说明 |
---|---|
left | 左对齐 |
center | 居中对齐 |
right | 右对齐 |
<h1>h1标签效果</h1>
<h2 align="center">h2标签效果</h2>