首页 > 开发 > HTML > 正文

以HTML网页实例说明head区代码的意思

2020-09-18 22:21:48
字体:
来源:转载
供稿:网友
举例熟悉网页的头部信息表示涵义

<!doctype html public "-//w3c//dtd html 4.01 transitional//en"
"http://www.w3.org/tr/html4/loose.dtd"><!--文档类型-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312"><!--设置网页的文件编码-->
<meta http-equiv="expires" content="2008/10/15 18:00:00"><!--脱机浏览的过期时间-->
<meta http-equiv="pragma" content="no-cache"><!--禁止网页从缓存中读取-->
<meta http-equiv="refresh" content="5;http://www.CuoXin.com"><!--网页重新定向-->
<meta http-equiv="set-cookie" content="2007/10/18 18:00:00"><!--设置网页的cookie过期时间-->
<meta http-equiv="window-target" content="_top"><!--设置网页中链接的目标窗口-->
<meta http-equiv="page-enter" content="revealtrans(duration=1000000,transition=50000000)"><!--设置网页的打开效果-->
<meta http-equiv="page-exit" content="revealtrans(duration=1000000,transition=50000000)"><!--设置网页的关闭效果-->
<meta name="keywords" content="web,CuoXin,webdesign"><!--设置网页的关键字,搜索的时候优先!!!重要!!! 该数据被搜索引擎编入索引-->
<meta name="description" content="哈哈哈哈哈"><!--插入描述 搜索时被搜索引擎编入索引-->
<title>标题一定不要少啊!对seo很有用的!</title>
</head>
<body>
aaa
</body>
</html>

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表