网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的考试资料:

 

标题 极简的HTML5模版
内容
    这篇文章主要介绍了一个极简的HTML5模版,代码功能的说明基本上都融入于注释之中,需要的朋友可以参考下
    分享一个HTML5页面开发的基础性模板,包含了两个版本:开发版本和注释版本。可以被用于基础的服务器端编程框架框架之中^_^
    开发版本
    XML/HTML Code
    <!DOCTYPE html>  
    <html>  
    <head>  
    <meta http-equiv="X-UA-Compatible" content="IE=edge">  
    <meta charset="utf-8">  
    <title></title>  
    <meta name="description" content="">  
    <meta name="author" content="">  
    <meta name="viewport" content="width=device-width, initial-scale=1">  
    <link rel="stylesheet" href="">  
    <!--[if lt IE 9]>  
    <script src="//cdn.jsdelivr.net/<span id="11_nwp"><a mpid="11" target="_blank" href="/uploads/202504/02/3322" id="11_nwl"><span>html5</span></a></span>shiv/3.7.2/html5shiv.min.js"></script>  
    <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>  
    <![endif]-->  
    <link rel="shortcut icon" href="">  
    </head>  
    <body>  
    <!-- 这里添加页面主要内容 -->  
    <!-- SCRIPTS:个人建议在天朝不要使用Google的CDN了,是不是你就发现你的网站功能失效了 -->  
    <!-- Example: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> -->  
    </body>  
    </html>  
    注释版本
    XML/HTML Code
    <!DOCTYPE <span id="0_nwp"><a mpid="0" target="_blank" href="/uploads/202504/02/3322" id="0_nwl"><span>html</span></a></span>>  
    <!--    
         设置lang值来保证<html><span id="1_nwp"><a mpid="1" target="_blank" href="/uploads/202504/02/3322" id="1_nwl"><span>标签</span></a></span>的互操作性及其可访问性   
     更多HTML标签全局性属性   
     请阅读这里: http://www.w3.org/TR/html-markup/global-attributes.html -->  
    <html>  
    <<span id="2_nwp"><a mpid="2" target="_blank" href="/uploads/202504/02/3322" id="2_nwl"><span>head</span></a></span>>  
    <!--   
        告诉IE使用目前最新的布局引擎:   
        更多信息阅读这里: https://www.modern.ie/en-us/performance/how-to-use-x-ua-compatible -->  
    <meta http-equiv="X-UA-Compatible" content="IE=edge">  
    <!--   
         针对web性能定义字符集,首选通过HTTP header来设置   
     确保HTTP header和Meta标签设置一致   
     更多信息阅读这里: https://developers.google.com/speed/docs/best-practices/rendering#SpecifyCharsetEarly -->  
    <meta charset="utf-8">    
    <!-- 指定页面标题 -->  
    <title></title>  
    <!-- 指定web页面描述 -->  
    <meta name="description" content="">  
    <!-- 指定web页面作者 -->  
    <meta name="author" content="">  
    <!-- 提示移动浏览器使用设备<span id="3_nwp"><a mpid="3" target="_blank" href="/uploads/202504/02/3404" id="3_nwl"><span>宽度</span></a></span>和缩放比 -->  
    <meta name="viewport" content="width=device-width, initial-scale=1">  
    <!-- 在页面加载前来加载CSS   
         保证相关样式的及时加载   
         指定对应的URI属性 -->  
    <link rel="stylesheet" href="">  
    <!--   
         加载<span id="4_nwp"><a mpid="4" target="_blank" href="/uploads/202504/02/3322" id="4_nwl"><span>html</span></a></span>shiv和respond.js来兼容老版本的IE浏览器   
     方便使用HTML5中的新元素和media queries -->  
    <!--[if lt IE 9]>  
    <script <span id="5_nwp"><a mpid="5" target="_blank" href="/uploads/202504/02/3404" id="5_nwl"><span>src</span></a></span>="//cdn.jsdelivr.net/<span id="6_nwp"><a mpid="6" target="_blank" href="/uploads/202504/02/3322" id="6_nwl"><span>html5</span></a></span>shiv/3.7.2/html5shiv.min.js"></script>  
    <script src="//cdnjs.cloudflare.com/<span id="7_nwp"><a mpid="7" target="_blank" href="/uploads/202504/02/3404" id="7_nwl"><span>ajax</span></a></span>/libs/respond.js/1.4.2/respond.min.js"></script>  
    <![endif]-->  
    <!-- 指定favicon的URI -->  
    <link rel="shortcut icon" href="">  
    <!-- 下面注释掉的是ios/android书签图标-->  
    <!--   
    <meta name="mobile-web-app-capable" content="yes">  
    <link rel="icon" sizes="196x196" href="">  
    <link rel="apple-touch-icon" sizes="152x152" href="">  
    -->  
    <!--    
         如果可能使用async属性来非阻断的加载脚本   
     例子: <script <span id="8_nwp"><a mpid="8" target="_blank" href="/uploads/202504/02/3404" id="8_nwl"><span>src</span></a></span>="" async></script> -->  
    </<span id="9_nwp"><a mpid="9" target="_blank" href="/uploads/202504/02/3322" id="9_nwl"><span>head</span></a></span>>  
    <body>  
    <!-- 这里添加页面主要内容 -->  
    <!-- 如果可能使用async属性来非阻断的加载脚本 -->  
    <!-- SCRIPTS -->  
    <!-- 例子: <script src="http://<span id="10_nwp"><a mpid="10" target="_blank" href="/uploads/202504/02/3404" id="10_nwl"><span>ajax</span></a></span>.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> -->  
    </body>  
    </html>  
随便看

 

在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/20 6:42:56