极简的HTML5模版


Posted in HTML / CSS onJuly 09, 2015

分享一个HTML5页面开发的基础性模板,包含了两个版本:开发版本和注释版本。可以被用于基础的服务器端编程框架框架之中^_^

开发版本

 

XML/HTML Code复制内容到剪贴板
  1. <!DOCTYPE html>  
  2. <html>  
  3. <head>  
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge">  
  5. <meta charset="utf-8">  
  6. <title></title>  
  7. <meta name="description" content="">  
  8. <meta name="author" content="">  
  9. <meta name="viewport" content="width=device-width, initial-scale=1">  
  10. <link rel="stylesheet" href="">  
  11. <!--[if lt IE 9]>  
  12. <script src="//cdn.jsdelivr.net/<span style="width: auto; height: auto; float: none;" id="11_nwp"><a style="text-decoration: none;" mpid="11" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=html5&k0=html5&kdi0=0&luki=6&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="11_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">html5</span></a></span>shiv/3.7.2/html5shiv.min.js"></script>  
  13. <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>  
  14. <![endif]-->  
  15. <link rel="shortcut icon" href="">  
  16. </head>  
  17. <body>  
  18.     
  19. <!-- 这里添加页面主要内容 -->  
  20.     
  21. <!-- SCRIPTS:个人建议在天朝不要使用Google的CDN了,是不是你就发现你的网站功能失效了 -->  
  22. <!-- Example: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> -->  
  23. </body>  
  24. </html>  

注释版本
 

XML/HTML Code复制内容到剪贴板
  1. <!DOCTYPE <span style="width: auto; height: auto; float: none;" id="0_nwp"><a style="text-decoration: none;" mpid="0" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=html&k0=html&kdi0=0&luki=2&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="0_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">html</span></a></span>>  
  2. <!--    
  3.      设置lang值来保证<html><span style="width: auto; height: auto; float: none;" id="1_nwp"><a style="text-decoration: none;" mpid="1" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=%B1%EA%C7%A9&k0=%B1%EA%C7%A9&kdi0=0&luki=3&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="1_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">标签</span></a></span>的互操作性及其可访问性   
  4.    更多HTML标签全局性属性   
  5.    请阅读这里: http://www.w3.org/TR/html-markup/global-attributes.html -->  
  6. <html>  
  7.     
  8. <<span style="width: auto; height: auto; float: none;" id="2_nwp"><a style="text-decoration: none;" mpid="2" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=head&k0=head&kdi0=0&luki=4&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="2_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">head</span></a></span>>  
  9.     
  10. <!--   
  11.     告诉IE使用目前最新的布局引擎:   
  12.     更多信息阅读这里: https://www.modern.ie/en-us/performance/how-to-use-x-ua-compatible -->  
  13. <meta http-equiv="X-UA-Compatible" content="IE=edge">  
  14.     
  15. <!--   
  16.      针对web性能定义字符集,首选通过HTTP header来设置   
  17.    确保HTTP header和Meta标签设置一致   
  18.    更多信息阅读这里: https://developers.google.com/speed/docs/best-practices/rendering#SpecifyCharsetEarly -->  
  19. <meta charset="utf-8">    
  20.     
  21. <!-- 指定页面标题 -->  
  22. <title></title>  
  23.     
  24. <!-- 指定web页面描述 -->  
  25. <meta name="description" content="">  
  26.     
  27. <!-- 指定web页面作者 -->  
  28. <meta name="author" content="">  
  29.     
  30. <!-- 提示移动浏览器使用设备<span style="width: auto; height: auto; float: none;" id="3_nwp"><a style="text-decoration: none;" mpid="3" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=%BF%ED%B6%C8&k0=%BF%ED%B6%C8&kdi0=0&luki=1&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="3_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">宽度</span></a></span>和缩放比 -->  
  31. <meta name="viewport" content="width=device-width, initial-scale=1">  
  32.     
  33. <!-- 在页面加载前来加载CSS   
  34.      保证相关样式的及时加载   
  35.      指定对应的URI属性 -->  
  36. <link rel="stylesheet" href="">  
  37.     
  38. <!--   
  39.      加载<span style="width: auto; height: auto; float: none;" id="4_nwp"><a style="text-decoration: none;" mpid="4" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=html&k0=html&kdi0=0&luki=2&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="4_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">html</span></a></span>shiv和respond.js来兼容老版本的IE浏览器   
  40.    方便使用HTML5中的新元素和media queries -->  
  41. <!--[if lt IE 9]>  
  42. <script <span style="width: auto; height: auto; float: none;" id="5_nwp"><a style="text-decoration: none;" mpid="5" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=src&k0=src&kdi0=0&luki=5&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="5_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">src</span></a></span>="//cdn.jsdelivr.net/<span style="width: auto; height: auto; float: none;" id="6_nwp"><a style="text-decoration: none;" mpid="6" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=html5&k0=html5&kdi0=0&luki=6&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="6_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">html5</span></a></span>shiv/3.7.2/html5shiv.min.js"></script>  
  43. <script src="//cdnjs.cloudflare.com/<span style="width: auto; height: auto; float: none;" id="7_nwp"><a style="text-decoration: none;" mpid="7" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=ajax&k0=ajax&kdi0=0&luki=8&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="7_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">ajax</span></a></span>/libs/respond.js/1.4.2/respond.min.js"></script>  
  44. <![endif]-->  
  45.     
  46. <!-- 指定favicon的URI -->  
  47. <link rel="shortcut icon" href="">  
  48.     
  49. <!-- 下面注释掉的是ios/android书签图标-->  
  50. <!--   
  51. <meta name="mobile-web-app-capable" content="yes">  
  52. <link rel="icon" sizes="196x196" href="">  
  53. <link rel="apple-touch-icon" sizes="152x152" href="">  
  54. -->  
  55.     
  56. <!--    
  57.      如果可能使用async属性来非阻断的加载脚本   
  58.    例子: <script <span style="width: auto; height: auto; float: none;" id="8_nwp"><a style="text-decoration: none;" mpid="8" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=src&k0=src&kdi0=0&luki=5&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="8_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">src</span></a></span>="" async></script> -->  
  59. </<span style="width: auto; height: auto; float: none;" id="9_nwp"><a style="text-decoration: none;" mpid="9" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=head&k0=head&kdi0=0&luki=4&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="9_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">head</span></a></span>>  
  60. <body>  
  61.     
  62. <!-- 这里添加页面主要内容 -->  
  63.     
  64. <!-- 如果可能使用async属性来非阻断的加载脚本 -->  
  65. <!-- SCRIPTS -->  
  66. <!-- 例子: <script src="http://<span style="width: auto; height: auto; float: none;" id="10_nwp"><a style="text-decoration: none;" mpid="10" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=ab4a7d1f97e0f21c&k=ajax&k0=ajax&kdi0=0&luki=8&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=1cf2e0971f7d4aab&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F4756%2Ehtml&urlid=0" id="10_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">ajax</span></a></span>.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> -->  
  67. </body>  
  68. </html>  
HTML / CSS 相关文章推荐
css3个性化字体_动力节点Java学院整理
Jul 12 HTML / CSS
纯CSS打造(无图像无js)的非常流行的讲话(语音)气泡效果
Dec 28 HTML / CSS
一款纯css3实现的鼠标经过按钮特效教程
Nov 09 HTML / CSS
使用CSS3来匹配横屏竖屏的简单方法
Aug 04 HTML / CSS
CSS3中几个新增加的盒模型属性使用教程
Mar 01 HTML / CSS
CSS3中各种颜色属性的使用教程
May 17 HTML / CSS
CSS3 :not()选择器实现最后一行li去除某种css样式
Oct 19 HTML / CSS
HTML5-WebSocket实现聊天室示例
Dec 15 HTML / CSS
谷歌浏览器小字体处理方案即12px以下字体
Dec 17 HTML / CSS
简单介绍HTML5中的文件导入
May 08 HTML / CSS
HTML5本地存储之Web Storage详解
Jul 04 HTML / CSS
详解overflow:hidden的作用(溢出隐藏、清除浮动、解决外边距塌陷)
Jul 01 HTML / CSS
深入探究HTML5的History API
Jul 09 #HTML / CSS
HTML5中Localstorage的使用教程
Jul 09 #HTML / CSS
HTML5到底会有什么发展?HTML5的前景展望
Jul 07 #HTML / CSS
HTML5新增的8类INPUT输入类型介绍
Jul 06 #HTML / CSS
用HTML5实现鼠标滚轮事件放大缩小图片的功能
Jun 25 #HTML / CSS
检测浏览器对HTML5和CSS3支持度的方法
Jun 25 #HTML / CSS
HTML5的一个显示电池状态的API简介
Jun 18 #HTML / CSS
You might like
在线增减.htpasswd内的用户
2006/10/09 PHP
PHP 向右侧拉菜单实现代码,测试使用中
2009/11/03 PHP
WordPress中用于检索模版的相关PHP函数使用解析
2015/12/15 PHP
php判断是否连接上网络的方法实例详解
2016/12/14 PHP
php文件上传及下载附带显示文件及目录功能
2017/04/27 PHP
PHP使用Nginx实现反向代理
2017/09/20 PHP
PHP观察者模式定义与用法实例分析
2019/03/22 PHP
文本框输入时 实现自动提示(像百度、google一样)
2012/04/05 Javascript
使用jquery的ajax需要注意的地方dataType的设置
2013/08/12 Javascript
jQuery教程 $()包装函数来实现数组元素分页效果
2013/08/13 Javascript
JQuery中使用Ajax赋值给全局变量异常的解决方法
2014/01/10 Javascript
javascript 获取网页标题代码实例
2014/01/22 Javascript
JavaScript实现把数字转换成中文
2015/06/29 Javascript
JavaScript仿静态分页实现方法
2015/08/04 Javascript
JavaScript+CSS无限极分类效果完整实现方法
2015/12/22 Javascript
关于JS变量和作用域详解
2016/07/28 Javascript
jQuery Easyui Tabs扩展根据自定义属性打开页签
2016/08/15 Javascript
js正则表达式惰性匹配和贪婪匹配用法分析
2016/12/26 Javascript
Javascript中 带名 匿名 箭头函数的重要区别(推荐)
2017/01/29 Javascript
基于vue2.0+vuex的日期选择组件功能实现
2017/03/13 Javascript
JS实现自动轮播图效果(自适应屏幕宽度+手机触屏滑动)
2017/06/19 Javascript
iview table render集成switch开关的实例
2018/03/14 Javascript
JS工厂模式开发实践案例分析
2019/10/17 Javascript
vue2.0 watch里面的 deep和immediate用法说明
2020/10/30 Javascript
Python语言实现将图片转化为html页面
2017/12/06 Python
Python中的函数作用域
2018/05/07 Python
Python pymongo模块常用操作分析
2018/09/01 Python
Python列表list操作相关知识小结
2020/01/29 Python
windows下python安装pip方法详解
2020/02/10 Python
python 实现非极大值抑制算法(Non-maximum suppression, NMS)
2020/10/15 Python
Pycharm如何自动生成头文件注释
2020/11/14 Python
delegate与普通函数的区别
2014/01/22 面试题
《毛主席在花山》教学反思
2014/04/20 职场文书
2014年仓库管理员工作总结
2014/11/18 职场文书
2014年实习生工作总结
2014/11/27 职场文书
Python实战之OpenCV实现猫脸检测
2021/06/26 Python