第二章 元信息標記

<meta>標記一般用來定義頁面信息的名稱、關鍵字、作者等。

<html>
<head>
<title>設置頁面關鍵字</title>
<meta name="keywords" content="爲頁面關鍵字"></meta>
<meta name="description" content="對頁面的描述"></meta>
<meta name="generator" content="編輯軟件的名稱"></meta>
<meta name="author" content="作者的姓名"></meta>
<meta name="robots" content="限制對頁面的搜索方式"></meta>
</head>
<body>
</body>
</html>
網頁文字及語言:
第一種方法: <meta http-equiv="Content-Type" content="text/html";charset="字符集類型">
第二種方法: <meta http-equiv="Content-Language" content="語言">

定時跳轉頁面:

<html>
<head>
<title>設置網頁的定時跳轉</title>
<meta  http-equiv="refresh" content="3;url=http://www.mingribook.com">
</head>
<body>
您好,本頁在三秒後將自動跳轉到明日圖書網
</body>
</html>
有效期的設置:

<html>
<head>
<title>設置有效期限,網頁的到期時間</title>
<meta   http-equiv="expires" content="Web, 14 september 2012 16:20:00 GMT ">//到期的時間必須是GMT時間格式
</head>
<body>
</body>
</html>

禁止從緩存中調用

刪除過期的cookie

強制打開新頁面

網頁的過渡效果設置















發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章