极简的HTML5模版

道一声清晨的祝福早上好!说一声清晨的关心吃早餐了吗?问一声清晨的关怀昨晚睡的好吗?真心送一句清晨的祝福愿你一天情绪愉快!

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

  开发版本


XML/HTML Code复制内容到剪贴板
  1. <!DOCTYPEhtml>
  2. <html>
  3. <head>
  4. <metahttp-equiv="X-UA-Compatible"content="IE=edge">
  5. <metacharset="utf-8">
  6. <title></title>
  7. <metaname="description"content="">
  8. <metaname="author"content="">
  9. <metaname="viewport"content="width=device-width,initial-scale=1">
  10. <linkrel="stylesheet"rel="nofollow noopener noreferrer" href="">
  11. <!--[ifltIE9]>
  12. <scriptsrc="//cdn.jsdelivr.net/<spanstyle="width:auto;height:auto;float:none;"id="11_nwp"><astyle="text-decoration:none;"mpid="11"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">html5</span></a></span>shiv/3.7.2/html5shiv.min.js"></script>
  13. <scriptsrc="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
  14. <![endif]-->
  15. <linkrel="shortcuticon"rel="nofollow noopener noreferrer" href="">
  16. </head>
  17. <body>
  18. <!--这里添加页面主要内容-->
  19. <!--SCRIPTS:个人建议在天朝不要使用Google的CDN了,是不是你就发现你的网站功能失效了-->
  20. <!--Example:<scriptsrc="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>-->
  21. </body>
  22. </html>

  注释版本

XML/HTML Code复制内容到剪贴板
  1. <!DOCTYPE<spanstyle="width:auto;height:auto;float:none;"id="0_nwp"><astyle="text-decoration:none;"mpid="0"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">html</span></a></span>>
  2. <!--
  3. 设置lang值来保证<html><spanstyle="width:auto;height:auto;float:none;"id="1_nwp"><astyle="text-decoration:none;"mpid="1"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="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. <<spanstyle="width:auto;height:auto;float:none;"id="2_nwp"><astyle="text-decoration:none;"mpid="2"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">head</span></a></span>>
  8. <!--
  9. 告诉IE使用目前最新的布局引擎:
  10. 更多信息阅读这里:https://www.modern.ie/en-us/performance/how-to-use-x-ua-compatible-->
  11. <metahttp-equiv="X-UA-Compatible"content="IE=edge">
  12. <!--
  13. 针对web性能定义字符集,首选通过HTTPheader来设置
  14.  确保HTTPheader和Meta标签设置一致
  15.  更多信息阅读这里:https://developers.google.com/speed/docs/best-practices/rendering#SpecifyCharsetEarly-->
  16. <metacharset="utf-8">
  17. <!--指定页面标题-->
  18. <title></title>
  19. <!--指定web页面描述-->
  20. <metaname="description"content="">
  21. <!--指定web页面作者-->
  22. <metaname="author"content="">
  23. <!--提示移动浏览器使用设备<spanstyle="width:auto;height:auto;float:none;"id="3_nwp"><astyle="text-decoration:none;"mpid="3"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">宽度</span></a></span>和缩放比-->
  24. <metaname="viewport"content="width=device-width,initial-scale=1">
  25. <!--在页面加载前来加载CSS
  26. 保证相关样式的及时加载
  27. 指定对应的URI属性-->
  28. <linkrel="stylesheet"rel="nofollow noopener noreferrer" href="">
  29. <!--
  30. 加载<spanstyle="width:auto;height:auto;float:none;"id="4_nwp"><astyle="text-decoration:none;"mpid="4"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">html</span></a></span>shiv和respond.js来兼容老版本的IE浏览器
  31.  方便使用HTML5中的新元素和mediaqueries-->
  32. <!--[ifltIE9]>
  33. <script<spanstyle="width:auto;height:auto;float:none;"id="5_nwp"><astyle="text-decoration:none;"mpid="5"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">src</span></a></span>="//cdn.jsdelivr.net/<spanstyle="width:auto;height:auto;float:none;"id="6_nwp"><astyle="text-decoration:none;"mpid="6"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">html5</span></a></span>shiv/3.7.2/html5shiv.min.js"></script>
  34. <scriptsrc="//cdnjs.cloudflare.com/<spanstyle="width:auto;height:auto;float:none;"id="7_nwp"><astyle="text-decoration:none;"mpid="7"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="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>
  35. <![endif]-->
  36. <!--指定favicon的URI-->
  37. <linkrel="shortcuticon"rel="nofollow noopener noreferrer" href="">
  38. <!--下面注释掉的是ios/android书签图标-->
  39. <!--
  40. <metaname="mobile-web-app-capable"content="yes">
  41. <linkrel="icon"sizes="196x196"rel="nofollow noopener noreferrer" href="">
  42. <linkrel="apple-touch-icon"sizes="152x152"rel="nofollow noopener noreferrer" href="">
  43. -->
  44. <!--
  45. 如果可能使用async属性来非阻断的加载脚本
  46.  例子:<script<spanstyle="width:auto;height:auto;float:none;"id="8_nwp"><astyle="text-decoration:none;"mpid="8"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">src</span></a></span>=""async></script>-->
  47. </<spanstyle="width:auto;height:auto;float:none;"id="9_nwp"><astyle="text-decoration:none;"mpid="9"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">head</span></a></span>>
  48. <body>
  49. <!--这里添加页面主要内容-->
  50. <!--如果可能使用async属性来非阻断的加载脚本-->
  51. <!--SCRIPTS-->
  52. <!--例子:<scriptsrc="http://<spanstyle="width:auto;height:auto;float:none;"id="10_nwp"><astyle="text-decoration:none;"mpid="10"target="_blank"rel="nofollow noopener noreferrer" 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"><spanstyle="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>-->
  53. </body>
  54. </html>

本文极简的HTML5模版到此结束。只要你长着耳朵,就会听到不中听或中听的话,不必为此烦恼。小编再次感谢大家对我们的支持!