<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<!--
div :行级块标签
span:行内块标签
作用:div:div+css布局
span:进行友好提示
-->
<div style="background-color: red">div1</div>
<div style="background-color: green">div2</div>
<span style="background-color: blue">span1</span>
<span style="background-color: pink">span2</span>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<!--
div :行级块标签
span:行内块标签
作用:div:div+css布局
span:进行友好提示
-->
<div style="background-color: red">div1</div>
<div style="background-color: green">div2</div>
<span style="background-color: blue">span1</span>
<span style="background-color: pink">span2</span>
</body>
</html>