Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wingmeng opened this issue May 29, 2019 · 0 comments
Open

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

wingmeng opened this issue May 29, 2019 · 0 comments

Comments

@wingmeng
Copy link
Collaborator

wingmeng commented May 29, 2019

题目:

请写出你所知道的所有 <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"> <!-- 上面一条设置启用时生效 -->

拓展阅读

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant