HTML页面规范

时间:2023-12-05 10:50:14
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>页面名称</title>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<!-- Mobile Specific Metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- CSS
================================================== -->
<link rel="shortcut icon" href="http://www.yunos.com/favicon.ico">
<link rel="stylesheet" href="http://m.alicdn.com/css/index.css"/>
<style>/* css */</style>
</head> <body>
<!--[if lt IE 8]>
<div class="g_tips">
<p>
已经有超过90%的用户使用更高版本
<a target="_blank" title="下载Chrome" href="http://www.google.com/chrome/">Google Chrome</a>

<a target="_blank" href="http://www.microsoft.com/zh-cn/download/ie.aspx?q=internet+explorer">Internet Explorer</a>
体验到了更流畅更精彩的页面,你还不试试?
</p>
</div>
<![endif]--> <h1>300,000,00</h1> <script src="js/index.js"></script>
<script>// js
  </script>
</body>
</html>
<html lang="zh-CN"> 性属说明这个html内容是以中文为显示和阅读基础,多语言的网站建议添加。
  • 通常情况下CSS放文档开始,脚本放在文档末尾我想不用解释太多
  • 如果一个页面足够简单,写在页面上是完全 OK 的,特别是一些简单的专题,但是项目上需谨慎使用

http://www.cnblogs.com/v10258/p/3520520.html