Skip to content

常用模版

HTML5 标准模版

html
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <title>HTML5标准模版</title>
  </head>
  <body></body>
</html>

PC 约定模版

html
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" href="favicon.ico" />
    <meta name="keywords" content="your keywords" />
    <meta name="description" content="描述信息" />
    <meta name="author" content="name,email" />
    <meta name="robots" content="index,follow" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
    <meta name="renderer" content="ie-stand" />
    <title>PC模版</title>

    <!-- DNS解析 -->
    <link rel="dns-prefetch" href="" />
    <!-- DNS解析 -->
  </head>
  <body></body>
</html>

移动端约定模版

html
!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no"
    />
    <meta name="format-detection" content="telephone=no" />
    <title>移动端模版</title>

    <!-- DNS预解析 -->
    <link rel="dns-prefetch" href="" />
    <!-- DNS预解析 -->
  </head>
  <body></body>
</html>