Html网页页面head区规范知识
|
源代码网整理以下 head区是指首页HTML代码的<head>和</head>之间的内容。 源代码网整理以下 必须加入的标签 源代码网整理以下 1.公司版权注释 源代码网整理以下 <!--- The site is designed bywebjx.com 06/2006 ---> 源代码网整理以下 2.网页显示字符集 源代码网整理以下 简体中文:<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> 源代码网整理以下 繁体中文:<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=BIG5"> 源代码网整理以下 英 语:<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> 源代码网整理以下 3.网页制作者信息 源代码网整理以下 <META name="author" content="Evance"> 源代码网整理以下 4.网站简介 源代码网整理以下 <META NAME="DESCRIPTION" CONTENT="xxxxxxxxxxxxxxxxxxxxxxxxxx"> 源代码网整理以下 5.搜索关键字 源代码网整理以下 <META NAME="keywords" CONTENT="xxxx,xxxx,xxx,xxxxx,xxxx,"> 源代码网整理以下 6.网页的css规范 源代码网整理以下 <LINK href="style/style.css" rel="stylesheet" type="text/css"> 源代码网整理以下 7.网页标题 源代码网整理以下 <title>xxxxxxxxxxxxxxxxxx</title> 源代码网整理以下 .可以选择加入的标签 源代码网整理以下 1.设定网页的到期时间。一旦网页过期,必须到服务器上重新调阅。 源代码网整理以下 <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 2006 08:21:57 GMT"> 源代码网整理以下 2.禁止浏览器从本地机的缓存中调阅页面内容。 源代码网整理以下 <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 源代码网整理以下 3.用来防止别人在框架里调用你的页面。 源代码网整理以下 <META HTTP-EQUIV="Window-target" CONTENT="_top"> 源代码网整理以下 4.自动跳转。 源代码网整理以下 <META HTTP-EQUIV="Refresh" CONTENT="5;URL=http://www.webjx.com"> 源代码网整理以下 5指时间停留5秒。 源代码网整理以下 5.网页搜索机器人向导.用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引。 源代码网整理以下 <META NAME="robots" CONTENT="none"> 源代码网整理以下 CONTENT的参数有all,none,index,noindex,follow,nofollow。默认是all。 源代码网整理以下 6.收藏夹图标 源代码网整理以下 <link rel = "Shortcut Icon" href="favicon.ico"> 源代码网整理以下 所有的javascript的调用尽量采取外部调用. 源代码网整理以下 <SCRIPT LANGUAGE="javascript" SRC="script/xxxxx.js"></SCRIPT> 源代码网整理以下 附<body>标签: 源代码网整理以下 <body>标签不属于head区,这里强调一下,为了保证浏览器的兼容性,必须设置页面背景<body bgcolor="#FFFFFF"> 源代码网供稿. |
