利用標籤完善你的網站
03-06
有很多標籤,有助於網站的SEO,資源載入,提升體驗等等,這裡總結了一些能常用到的,共勉。
<meta>標籤
The
The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.<meta>tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.
name屬性
name屬性主要用於描述網頁,比如網頁的關鍵詞,敘述等。與之對應的屬性值為content,content中的內容是對name填入類型的具體描述,便於搜索引擎抓取。meta標籤中name屬性語法格式是:
<meta name="參數" content="具體的描述">

http-equiv屬性
使用帶有 http-equiv屬性的<meta>標籤時,伺服器將把名稱/值對添加到發送給瀏覽器的內容頭部。meta標籤中http-equiv屬性語法格式是:
<meta http-equiv="參數" content="具體的描述">

<link>標籤
The HTML
<link>element specifies relationships between the current document and an external resource. Possible uses for this element include defining a relational framework for navigation. This element is most used to link to style sheets.
rel屬性
這個屬性表明了鏈接的文檔對於當前文檔的關係。

Other
image標籤

推薦閱讀:
