HTML head头标签编写

<!doctype html>

<html>

<head>

<mata charset="utf-8">

<html lang="zh-cmn-Hans">

<!-- 优先使用 IE 最新版本和 Chrome -->

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

<!-- 360 使用Google Chrome Frame -->

<meta name="renderer" content="webkit">

<!-- 360 浏览器就会在读取到这个标签后,立即切换对应的极速核。 另外为了保险起见再加入 -->

<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">

<!-- 通过百度手机打开网页时,百度可能会对你的网页进行转码,脱下你的衣服,往你的身上贴狗皮膏药的广告,为此可在 head 内添加 -->

<meta http-equiv="Cache-Control" content="no-siteapp" />


<title>your title</title>

<!-- 页面关键词 keywords -->

<meta name="keywords" content="your keywords">

<!-- 页面描述内容 description -->

<meta name="description" content="your description">

<!-- 定义网页作者 author -->

<meta name="author" content="author,email address">

<!-- 定义网页搜索引擎索引方式,robotterms是一组使用英文逗号「,」分割的值,通常有如下几种取值:none,noindex,nofollow,all,index和follow。 -->

<meta name="robots" content="index,follow">

<!-- viewport 可以让布局在移动浏览器上显示的更好。 通常会写 -->

<meta name="viewport" content="width=device-width, initial-scale=1.0">

</head>

<body>


</body>

</html>


评论
热度(1)
© 此间少年 / Powered by LOFTER