html5页面常用的代码

编程知识 行业动态 更新时间:2024-06-13 00:17:59

HTML5页面代码结构

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <!--控制 缓存-->
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <!--移动页面-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>标题</title>
    <meta name="Keywords" content="csdn,艾斯博弈,我爱听宝奥" />
    <meta name="Description" content="这是一个标准html5的demo页面" />
    <link href="../xxx.css" type="text/css" />
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->    
    <style type="text/css">

    </style>
</head>

<body>
    <header>
        <!-- 头部 -->
        <nav>
            <ul>
                <li></li>
            </ul>
        </nav>
    </header>
    <div class="container">
        <!-- 主体 -->
        <section>

        </section>
        <article>
            <aside>

            </aside>
        </article>
    </div>
    <footer>
        <!-- 底部 -->
    </footer>
    <script type="text/javascript">
    </script>
</body>

</html>

如有新的,后续补充

上面的是一个HTML5的基本结构,今天发现一个更好的,据介绍有上百人的经验集合。
那就是
HTML5 Boilerplate
https://html5boilerplate/

最流行的web开发前端模版HTML5 Boilerplate
http://www.bootcss/p/html5boilerplate/

HTML 5 Boilerplate 5.0 中文文档
https://www.w3cplus/html5/html5-boilerplate.html

更多推荐

html5页面常用的代码

本文发布于:2023-03-26 02:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/68ba7d86f8b9b44981ec17bda7463cbd.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:常用   页面   代码

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!