首页 > 代码库 > html基础(一)

html基础(一)

html基础

1)标题

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>标题</title>
</head>
<body>
</body>
</html>

2)标签

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>标题</title>
</head>
<body>
    <h1>标签</h1>
    <h2>标签</h2>
    <h3>标签</h3>
    <h4>标签</h4>
    <h5>标签</h5>
    <h6>标签</h6>
</body>
</html>

3)段落标签

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>标题</title>
</head>
<body>
    <p>段落标签</p>
    <p>段落标签</p>
    <p>段落标签</p>
</body>
</html>

4)空格

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>标题</title>
</head>
<body>
    <p>
            段落标签
    </p>
    <p>
        段落标签
    </p>
    <p>
        段落标签
    </p>
</body>
</html>

5)换行

 

html基础(一)