经验2:php 中html书写规范

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>标题</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link  rel="stylesheet" type="text/css" href="../Public/css/hemai/hemai.css"/>
<script type="text/javascript" src="../Public/js/Jquery/jquery.js"></script>
</head>
<body>

</body>

</html>

先<head><title>

再<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

再css

再js

再</head>
<body>

</body>

</html>

有时候你不按照这个顺序就会出一些你查不出来的问题

posted @ 2012-01-13 16:29  BeyondMyself  阅读(269)  评论(0编辑  收藏  举报