[转载]head区域代码大全

2013-05-02 22:52

[转载]head区域代码大全

by 晴方好玲

at 2013-05-02 14:52:12

original http://blog.sina.com.cn/s/blog_897db7b50101b4e2.html

原文地址:head区域代码大全作者:yychao
head区是指首页HTML代码的<head>和</head>之间的内容。 

1.网页显示字符集 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />

2.作者 
<meta name="Author" content="尹延超 MSN:yin_yanchao@live.cn QQ:304473036">

3.网站描述 
<meta name="Description" content="描述" />

4.搜索关键字 
<meta name="Keywords" content="关键字" />

5.公司版权注释 
<!--- The site is designed by Company 09/2010 --->  
<meta name="Copyright" content="版权" />

6.CSS调用
<link href="style/style.CSS" rel="stylesheet" type="text/CSS"> 

6.JavaScript调用
<script language="JavaScript" src="script/sample.js"></script>

7.网页标题 
<title> ... </title> 

可以选择加入的:

1.设定网页的到期时间。一旦网页过期,必须到服务器上重新调阅。 
<meta HTTP-EQUIV="expires" content="Wed, 26 Feb 1997 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.yoursite.com"> 
5指时间停留5秒。 

5.网页搜索机器人向导,用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引。 
<meta name="robots" content="all" />
content的参数有all,none,index,noindex,follow,nofollow 默认是all。 

6.收藏夹图标 
<link href="favicon.ico" type="image/x-icon" rel="Icon" />
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon" /><!-- 地址栏图标 -->
<link href="favicon.ico" type="image/x-icon" rel="Bookmark" /><!-- 收藏夹小图标 --> 

7.scheme (方案)
<meta scheme="isbn" name="identifier" content="0-14-043205-1" />
说明:scheme can be used when name is used to specify how the value of content should be interpreted.

8.base (基链接)
<base href="http://www.yoursite.com/" target="_blank">
说明:插入网页基链接属性,你网页上的所有相对路径在链接时都将在前面加上“http://www.yoursite.com/”,其中target="_blank"是链接文件在新的窗口中打开,你可以做其他设置。

等等...



 青春就应该这样绽放  游戏测试:三国时期谁是你最好的兄弟!!  你不得不信的星座秘密