← 输入框|github.com|刷新
Skip to content

第 20 期(W3C标准-HTML):meta标签 #23

Open

Description

@wingmeng

题目:

请写出你所知道的所有 <meta> 标签,例如:

<meta charset="UTF-8">  <!-- 字符集声明 -->

参考答案:

<meta charset="UTF-8"> <!-- 字符集声明 -->

<!-- 视口类 -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="user-scalable=no">

<!-- HTTP 参数类 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <!-- 浏览器渲染版本 -->
<meta http-equiv="cache-control" content="no-cache"> <!-- 缓存控制 -->
<meta http-equiv="expires" content="Sunday 26 October 2016 01:00 GMT"> <!-- 网页过期时间 -->
<meta http-equiv="refresh" content="5;url=http://xx.xx"> <!-- 网页重定向 -->
<meta http-equiv="cleartype" content="on"> <!-- 开启 cleartype,限IE -->
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> <!-- XSS终结者 -->

<!-- 禁止自动转码、翻译 -->
<meta http-equiv="Cache-Control" content="no-transform"> <!-- 进制转码 -->
<meta http-equiv="Cache-Control" content="no-siteapp"> <!-- 进制转码 -->
<meta name="google" value="notranslate"> <!-- 限chrome -->

<!-- SEO 类 -->
<meta name="keywords" content="xxx,xxx,xx">
<meta name="description" content="xxxxxxxx">

<!-- 其他 -->
<meta name="renderer" content="webkit"> <!-- 默认浏览器渲染内核,限360浏览器 -->
<meta name="format-detection" content="telephone=no,email=no,adress=no"> <!-- 禁止电话、邮箱、地址文本自动解析 -->
<meta name="apple-mobile-web-app-capable" content="yes"> <!-- 是否启用 WebApp 全屏模式 -->
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <!-- 上面一条设置启用时生效 -->

拓展阅读

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions