接下來將介紹meta標記,meta標記用于定義文件信息,對網(wǎng)頁文件進行說明,便于搜索引擎查找
meta標記用于定義文件信息,對網(wǎng)頁文件進行說明,便于搜索引擎查找。放置于<head></head>之間
設(shè)置關(guān)鍵字:
<meta name=”keywords” content=”value”>多個關(guān)鍵字內(nèi)容之間可以用“,”分隔
設(shè)置描述:<meta name=”description” content=”value”>
設(shè)置作者:<meta name=”author” content=”作者名”>
設(shè)置字符集:<meta http-equiv=”content-type” content=”text/html;charset=gb2312”>
設(shè)置頁面定時跳轉(zhuǎn):<meta http-equiv=“refresh"content="2;URL=http://www.itcast.cn" />