欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HTML 5 <a> 標(biāo)簽的 rel 屬性

實例

帶有 rel 屬性的鏈接:

<a rel="nofollow" href="http://www.ctrip.com.cn/">Cheap Flights</a>

親自試一試

定義和用法

rel 屬性規(guī)定當(dāng)前文檔與被鏈接文檔之間的關(guān)系。

僅在 href 屬性存在時使用。

HTML 4.01 與 HTML 5 之間的差異

已刪除的值:appendix, chapter, contents, copyright, glossary, index, section, start, subsection。

新的值:archives, author, bookmark, external, first, index, last, license, nofollow, noreferrer, search, sidebar, tag, up。

語法

<a rel="value">

屬性值

描述
alternate 鏈接到文檔的替代版本(例如打印頁、翻譯或鏡像)。
archives 鏈接到文檔集或歷史數(shù)據(jù)。
author 鏈接到文檔的作者。
bookmark 用作書簽的永久 URL。
external 鏈接到外部文檔。
first 鏈接到集合中的首個文檔。
help 鏈接到幫助文檔。
index 鏈接到文檔的索引。
last 鏈接到集合中最后的文檔。
licence 鏈接到文檔的版權(quán)信息。
next 集合中下一個文檔。
nofollow

鏈接到未認(rèn)可的文檔,比如付費鏈接。

Google 使用 "nofollow" 來規(guī)定其搜索蜘蛛不跟蹤該鏈接。

noreferrer 規(guī)定當(dāng)用戶跟隨該超鏈接時,瀏覽器不應(yīng)發(fā)送 HTTP referer 頭。
prev 集合中的前一個文檔。
search 鏈接到文檔的搜索工具。
sidebar 鏈接到應(yīng)該在瀏覽器邊欄中顯示的文檔。
tag 當(dāng)前文檔標(biāo)簽(關(guān)鍵詞)。
up 提供指向一個文檔的鏈接。該文檔提供當(dāng)前文檔的上下文關(guān)系。