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