首页 > Web开发 > 详细

HTML页面规范

时间:2014-01-22 17:41:50      阅读:448      评论:0      收藏:0      [点我收藏+]
bubuko.com,布布扣
<!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>
bubuko.com,布布扣

 

<html lang="zh-CN"> 性属说明这个html内容是以中文为显示和阅读基础,多语言的网站建议添加。
  • 通常情况下CSS放文档开始,脚本放在文档末尾我想不用解释太多
  • 如果一个页面足够简单,写在页面上是完全 OK 的,特别是一些简单的专题,但是项目上需谨慎使用

 

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

HTML页面规范

原文:http://www.cnblogs.com/i-blog/p/3529656.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!