<!DOCTYPE>
用于告诉浏览器用何种HTML标准去读取指令。
HTML5:
<!DOCTYPE html>
HTML4.01 strict:
<!DOCTYPE html "-W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML4.01 Transitional:
<!DOCTYPE html "-W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML4.01 FramesetS:
<!DOCTYPE html "-W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>标题</title>
<link .../>
...
</head>
<body>
</body>
</html>
时间: 2024-10-29 10:46:39