通用模式:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--
<meta name="description" content="描述" />
<meta name="author" content="作者" />
<meta name="copyright" content="版权" />
<meta name="date" content="网页生成时间" />
<meta name="keywords" content="关键词" />
<meta http-equiv="refresh" content="5; url=http://www.dreamdu.com/" />
<meta http-equiv="refresh" content="5" />
<link rel="stylesheet" type="text/css" href="mystyle.css" />
<style type="text/css">
</style>
<script type="text/javascript">
</script>
<script src="xxx.js"></script>
-->
</head>
<body>
This is my HTML page. <br />
</body>
</html>
严格模式:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--
<meta name="description" content="描述" />
<meta name="author" content="作者" />
<meta name="copyright" content="版权" />
<meta name="date" content="网页生成时间" />
<meta name="keywords" content="关键词" />
<meta http-equiv="refresh" content="5; url=http://www.dreamdu.com/" />
<meta http-equiv="refresh" content="5" />
<link rel="stylesheet" type="text/css" href="mystyle.css" />
<style type="text/css">
</style>
<script type="text/javascript">
</script>
<script src="xxx.js"></script>
-->
</head>
<body>
This is my HTML page. <br />
</body>
</html>
框架模式:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--
<meta name="description" content="描述" />
<meta name="author" content="作者" />
<meta name="copyright" content="版权" />
<meta name="date" content="网页生成时间" />
<meta name="keywords" content="关键词" />
<meta http-equiv="refresh" content="5; url=http://www.dreamdu.com/" />
<meta http-equiv="refresh" content="5" />
<link rel="stylesheet" type="text/css" href="mystyle.css" />
<style type="text/css">
</style>
<script type="text/javascript">
</script>
<script src="xxx.js"></script>
-->
</head>
</html>