1,Meta標籤
<meta charset="utf-8">
Charset:字符集
ASCII:26個英文字符和幾個簡單的特殊字符
ANSI:法文、韓文、日文、德文等
Unicode:各國方言
Gbk:中文
Gb2312:中文
Big5:繁體中文
utf-8:全球統一編碼格式
<meta name="keywords" content="">
作用:對網站進行優化的作用(類似於百度搜索的關鍵字) SEO
<meta name="description" content="">
作用:對網站進行優化的作用(對網站的描述) SEO
<meta http-equiv="refresh" content="5;url=http://www.baidu.com">//5秒後跳轉到百度
網頁重定向,一般過期網站,或者小電影網站經常用
<meta name="Author" contect="你的姓名">//告訴搜索引擎你的站點的製作的作者
<meta name="Robots" contect= "all|none|index|noindex|follow|nofollow">
其中的屬性說明如下:
設定爲none:文件將不被檢索,且頁面上的鏈接不可以被查詢;
設定爲index:文件將被檢索;
設定爲follow:頁面上的鏈接可以被查詢;
設定爲noindex:文件將不被檢索,但頁面上的鏈接可以被查詢;
設定爲nofollow:文件將不被檢索,頁面上的鏈接可以被查詢。
2,Link標籤
<link rel="stylesheet" href="1.css">
引入外部樣式表
<link rel="icon" href="favicon.ico">
給網頁titile中放置小圖標