HTML <a> relคุณสมบัติ
ตัวอย่าง
ลิงก์ที่มีแอตทริบิวต์ rel:
<a rel="nofollow" href="http://www.functravel.com/">Cheap Flights</a>
ความหมายและการใช้งาน
แอตทริบิวต์rel
ระบุความสัมพันธ์ระหว่างเอกสารปัจจุบันและเอกสารที่เชื่อมโยง
ใช้เฉพาะเมื่อมีhref
แอตทริบิวต์อยู่
เคล็ดลับ:เครื่องมือค้นหาสามารถใช้แอตทริบิวต์นี้เพื่อรับข้อมูลเพิ่มเติมเกี่ยวกับลิงก์ได้!
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
rel | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
<a rel="value">
ค่าแอตทริบิวต์
Value | Description |
---|---|
alternate | Provides a link to an alternate representation of the document (i.e. print page, translated or mirror) |
author | Provides a link to the author of the document |
bookmark | Permanent URL used for bookmarking |
external | Indicates that the referenced document is not part of the same site as the current document |
help | Provides a link to a help document |
license | Provides a link to licensing information for the document |
next | Provides a link to the next document in the series |
nofollow | Links to an unendorsed document, like a paid link. ("nofollow" is used by Google, to specify that the Google search spider should not follow that link) |
noopener | Requires that any browsing context created by following the hyperlink must not have an opener browsing context |
noreferrer | Makes the referrer unknown. No referer header will be included when the user clicks the hyperlink |
prev | The previous document in a selection |
search | Links to a search tool for the document |
tag | A tag (keyword) for the current document |
❮ แท็ก HTML <a>