html5基础知识点盒子

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
<div style="width: 300px ;height: 150px;background: green">
    默认宽度为全局宽度,默认高度为内容高度
</div>
    <div style="width: 120px;height:60px;background: red" ></div>
    <div style="width: 300px;height:60px;background: red">
        style中的属性用分号隔开,默认属性用空格隔开
    </div>
</div>
<span> 小容器 宽度为容器内容宽度无法更改 默认高度为内容高度
</span>
<span >小盒子无形之中最有形,</span>
<p>段落标签 paragraph 特点:上下外间距16px</p>
<p>段落标签 paragraph 特点:上下外间距16px</p>
<h1>标题一</h1>
<h2>标题二</h2>
<h3>标题三</h3>
h1权重很大,会触发logo
</body>
</html>

猜你喜欢

转载自blog.csdn.net/weixin_42218868/article/details/88670051