分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 软件开发

html-head-meta

发布时间:2023-09-06 01:53责任编辑:蔡小小关键词:meta
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"> ?<!--设置网页字符集--><!--以下为meta中 name属性的用法 --><meta name="keywords" content="python,html,meta,learn"> ?<!-- 网站搜索关键字----><meta name="description" content="用于学习python前后端开发。"> <!-- 网站内容描述----><meta name="viewport" content="width=device-width,initial-scale=1"><!-- 移动端窗口的设置 --><meta name="robots" content="none"><!-- ??robots 参数1.none : 搜索引擎将忽略此网页,等价于noindex,nofollow。2.noindex : 搜索引擎不索引此网页。3.nofollow: 搜索引擎不继续通过此网页的链接索引搜索其它的网页。4.all : 搜索引擎将索引此网页与继续通过此网页的链接索引,等价于index,follow。5.index : 搜索引擎索引此网页。6.follow : 搜索引擎继续通过此网页的链接索引搜索其它的网页。 --><meta name="author" content="LzSzs,88888888@qq.com"> <!-- 标注网站作者 --><meta name="generator" content="Notepad++"><!-- 标明网页制作软件。 --><meta name="copyright" content="LzSzs"><meta name="revisit-after" content="7 days" ><!--搜索引擎爬虫重访时间--><!-- ?双核浏览器渲染方式<meta name="renderer" content="webkit"> //默认webkit内核<meta name="renderer" content="ie-comp"> //默认IE兼容模式<meta name="renderer" content="ie-stand"> //默认IE标准模式--><!--以下为meta中 http-equiv属性的用法 --><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> <!--指定IE和Chrome使用最新版本渲染当前页面--><meta http-equiv="cache-control" content="no-cache"><!--1、no-cache: 先发送请求,与服务器确认该资源是否被更改,如果未被更改,则使用缓存。2、no-store: 不允许缓存,每次都要去服务器上,下载完整的响应。(安全措施)3、public : 缓存所有响应,但并非必须。因为max-age也可以做到相同效果4、private : 只为单个用户缓存,因此不允许任何中继进行缓存。(比如说CDN就不允许缓存private的响应)5、maxage : 表示当前请求开始,该响应在多久内能被缓存和重用,而不去服务器重新请求。例如:max-age=60表示响应可以再缓存和重用 60 秒。--><meta http-equiv="Cache-Control" content="no-siteapp" /> ?<!-- 禁止百度自动转码 --><meta http-equiv="expires" content="Sunday 26 October 2016 01:00 GMT" /><!--用于设定网页的到期时间,过期后网页必须到服务器上重新传输。--><meta http-equiv="refresh" content="2;URL=http://www.cnblogs.com/lzszs"> <!--意思是2秒后跳转向我的博客--><meta http-equiv="Set-Cookie" content="User=LzSzs; path=/; expires=Sunday, 10-Jan-16 10:00:00 GMT"> <!--说明:如果网页过期。那么这个网页存在本地的cookies也会被自动删除。--><title>标题名</title></head><body><a hrer="http://www.baidu.com">百度</a></body></html>

html-head-meta

原文地址:https://www.cnblogs.com/lzszs/p/9030029.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved