4.html 头部随笔
1、html頭部標(biāo)記
<base>:當(dāng)前文檔的URL全稱(基底地址)
<basefont>:設(shè)定基準(zhǔn)的文字字體、字號(hào)和顏色
<title>:網(wǎng)頁(yè)標(biāo)題
<isindex>:表明文檔是一個(gè)可用于檢索的網(wǎng)管腳本,有服務(wù)器自動(dòng)建立
<meta>:有關(guān)文檔本身的元信息,例如用于查詢的關(guān)鍵詞,用于獲取該文檔的有效期等
<style>:設(shè)定CSS層疊樣式
<link>:設(shè)定外部文件連接
<script>:設(shè)定頁(yè)面中腳本的內(nèi)容
2.meta簡(jiǎn)介
屬性:
http-equiv:生成一個(gè)http標(biāo)題域,他的取值與另一個(gè)屬性相同
name:如果元數(shù)據(jù)是以關(guān)鍵字/取值的形式出現(xiàn)的,name表示關(guān)鍵字
content:關(guān)鍵字/取值的內(nèi)容
(1):定義編輯工具
<meta name="generator" content="notepad">
generator 為編輯器定義,content中定義編輯器的名稱,上面為記事本編輯工具
(2):設(shè)定關(guān)鍵字
<meta name="keywords" content="關(guān)鍵字內(nèi)容,逗號(hào)隔開(kāi)">
keywords為關(guān)鍵字定義
(3):設(shè)定描述
<meta name="description" content="(描述內(nèi)容)">
(4):設(shè)定作者
<meta name="author" content="(作者)">
(5):設(shè)定字符集
<meta http-equiv="content-type" content="text/html;charset=(值)">
(6):設(shè)定自動(dòng)刷新
<meta http-equiv="refresh" content="(秒數(shù))">
(7):設(shè)定自動(dòng)跳轉(zhuǎn)
<meta http-equiv="refresh" content="(秒數(shù));(URL地址)">
(8):設(shè)定轉(zhuǎn)場(chǎng)效果
<meta http-equiv="event" content="revealtrans(duration=value,transition=number)">
event取值page-enter,page-exit
duration取值為過(guò)濾效果的延續(xù)時(shí)間單位為妙
transition取值為轉(zhuǎn)場(chǎng)效果,(0~23)分別代表不同效果詳細(xì)可查資料
(9):設(shè)定禁用緩存
<meta http-equiv="cache-control" content="no-cache">
cache-control為緩存控制 content中定義禁止緩存
(10):設(shè)置有效期限
<meta http-equiv="expires" content="value">
expires為網(wǎng)頁(yè)到期,content中定義到期時(shí)間,其格式為“星期,日月年時(shí)分秒 GMT” 都是用英文和數(shù)字設(shè)定
(11):設(shè)定簡(jiǎn)歷網(wǎng)站的日期
<meta http-equiv="build" content="value">
build為網(wǎng)頁(yè)建設(shè),content中定義建立時(shí)間(2011.11.11)
(12):說(shuō)明版權(quán)
<meta http-equiv="copyright" content="value">
copyright為版權(quán),content中定義版權(quán)信息
(13):記載聯(lián)系人郵箱
<meta http-equiv="reply-to" content="郵箱地址">
(14):限制搜索方式
<meta name="robots" content="all">
robots為定義搜索方式,content可以采用不同的方式(all,index,nofollow,noindex,none)
轉(zhuǎn)載于:https://www.cnblogs.com/superkook/archive/2011/12/04/2276103.html
總結(jié)
以上是生活随笔為你收集整理的4.html 头部随笔的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 男人争一口气是什么歌啊
- 下一篇: 开源图形库 FreeImage