HTML 笔记

一 、基本标记

1.设置限制搜索方式

<meta name="robots" content="ALL,Index,Nofollow,Noindex,None">
ALL 表示能搜索当前页面及其链接的页面
Index 表示能搜索当前页面
Nofollow  表示不能搜索与当前链接的页面
Noindex 表示不能搜索当前页面
None 表示不能搜索当前页面及其链接的页面

2.设置编辑工具

<meta name="Generator" content="Adobe Dreamweaver CC">  

3.设置定时跳转

<meta http-equiv="refresh" content="3;url=http://www.myhack.cc"> <!--页面将在3秒后跳转-->

4.设置网页的有效期

content的值必须是GMT格式 此处设置为2015年8月24日00点过期

<meta http-equiv="expires" content="Web,24 august 2015 00:00:00 GMT"> 

5.删除过期的cookie

content的值必须是GMT格式 此处设置为2015年8月24日00点过期

<meta http-equiv="set-cookie" content="Web,24 august 2015 00:00:00 GMT"> 

6.禁止从缓存中调用

<meta http-equiv="cache-control" content="no-cache"> 
<meta http-equiv="pragma" content="no-cache"> 

7.强制打开新窗口

<meta http-equiv="windows-target" content="_top"> <!--页面将在新窗口打开-->

8.设置网页的过渡效果

<meta http-equiv="page-enter" content="revalltrans(duration=3,transition=21)"> 

http-equiv 过渡事件

duration    过渡持续时间

transition  过渡方式

 

二 、文本内容 

 未完待续

 

posted @ 2015-06-28 12:58  匠人  阅读(188)  评论(0编辑  收藏  举报