标题

标题

HTML中的标题有六个级别:<h1>用在主标题上,<h2>用在子标题上,如果在子标题下还有分段就可以使用元素<h3>以此类推。

<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>标题</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <h1> 这是主标题</h1>
        <h2> 第二个标题</h2>
        <h3> 第三个标题</h3>
        <h4> 第四个标题</h4>
        <h5> 第五个标题</h5>
        <h6> 第六个标题</h6>
    </body>
</html>
原文地址:https://www.cnblogs.com/q2546/p/9324267.html