最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
html页面head区域的编码书写规范
时间:2026-06-01 09:30:02 编辑:袖梨 来源:一聚教程网
我们这里所说的head区域,是指页页html代码的<head>和</head>之间的内容。在jb51.net的文章中,主要介绍了大量的css知识,而对html页面的知识介绍并不是很多。 今天我们简单的介绍一下head区域主要放置了内容。这里就不强调css和javascript了,这两者是大家所熟知的。 head区一般必须加入的标识有: 公司版权注释 <!---thesiteisdesignedbyMrJin03/2001---> 网页显示字符集 简体中文: <metahttp-equiv="content-type"content="text/html;charset=gb2312"> 繁体中文: <metahttp-equiv="content-type"content="text/html;charset=big5"> 英语: <metahttp-equiv="content-type"content="text/html;charset=iso-8859-1"> 或者: <metahttp-equiv="content-type"content="text/html;charset=utf-8"> 原始制作者信息 <metaname="author"content="[email protected]"> 网站简介 <metaname="description"content="这里填您网站的简介"> 搜索关键字 <metaname="keywords"content="关键字1,关键字2,关键字3,..."> 网页的css规范 <linkhref="style/style.css"rel="stylesheet"type="text/css"> 网页标题 <title>这里是你的网页标题</title> head区可选加入的标识有: 设定网页的到期时间。一旦网页过期,必须到服务器上重新调阅。 <metahttp-equiv="expires"content="wed,26feb199708:21:57gmt"> 禁止浏览器从本地机的缓存中调阅页面内容。 <metahttp-equiv="pragma"content="no-cache"> 用来防止别人在框架里调用你的页面。 <metahttp-equiv="window-target"content="_top"> 自动跳转(5指时间停留5秒)。 <metahttp-equiv="refresh"content="5;url=www.jb51.net"> 网页搜索机器人向导.用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引。 <metaname="robots"content="none"> content的参数有all,none,index,noindex,follow,nofollow。默认是all。 收藏夹图标 <linkrel="shortcuticon"href="favicon.ico"> 如果您还有什么知识需要补充,欢迎在jb51.net发表评论。
相关文章
- 亲测!TokenPocket一键跨链兑换USDT全流程 06-01
- vivo浏览器历史记录恢复方法 06-01
- 亲测 Gemini Omni Model:从黑板公式到视频,5 分钟出片全记录 06-01
- 怪物猎人物语3奇怪龙在哪 06-01
- 帝国权杖与波斯文明探秘:详解帝国权杖与波斯文明的关系及历史介绍 06-01
- codex 官网 vs 镜像站:哪个才是真官方?2026亲测对比 06-01