REL Attribute | rel Property
REL Attribute | rel Property

Sets or retrieves the relationship between the object and the destination of the link.

What's New for Windows Internet Explorer 8

Values of bookmark, entry-content, and feedurl have special meaning inside a Web Slice. For more information, see Subscribing to Content with Web Slices.

Syntax

HTML<ELEMENT REL = sRelation... >
Scripting[ sRelation = ] object.rel

Possible Values

sRelationString that specifies or receives one or more of the following space delimited values in any order:
Alternate
Substitute version of the file that contains the link.
Appendix
Page that is an appendix for the set of pages.
Bookmark
Bookmark.
Internet Explorer 8. The anchor is an alternate navigation source for a Web Slice.
Chapter
Page that is a chapter for a set of pages.
Contents
Table of contents document.
Copyright
Copyright notice for the current page.
Entry-Content New for Internet Explorer 8 
Internet Explorer 8. The anchor is an alternate display source for a Web Slice.
FeedUrl New for Internet Explorer 8 
Internet Explorer 8. The anchor is an alternate update source for a Web Slice.
Glossary
Glossary for the current page.
Help
Help document.
Index
Index document for the current page.
Next
Next document in a sequence.
Offline
Path to the Channel Definition Format (CDF) file to be used for an offline favorite.
Prev
Previous document in a sequence.
Search
Internet Explorer 7 and later. The link refers to an OpenSearch Description file. (See Search Provider Extensibility in Internet Explorer for more information.) The Search type is not defined by the HTML 4.01 specification. For strict validation, include http://a9.com/-/spec/opensearch/1.1/ in the profile attribute of the head element.
Section
Page that is a section for a set of pages.
Shortcut Icon
Path to an icon file to be used for the favorite or link. See How to Add a Shortcut Icon to a Web Page.
Start
First document of a set.
Stylesheet
Style sheet.
Subsection
Page that is a subsection for a set of pages.

The property is read/write. The property has no default value.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.

Remarks

If no values are indicated, the rel property's default relationship is an empty string. This property is used only when the href property is applied.

The Offline, Search, Shortcut Icon, and Stylesheet values apply only to the link object.

The Offline value is available in Microsoft Internet Explorer 5 and later. For more information about CDF files and offline favorites, see Enhancing Offline Favorites. CDF is obsolete as of Internet Explorer 7.

The rel property is similar to the rev property, but the semantics of these two properties' link types are in the reverse direction. For example, a link from A to B with REL="X" expresses the same relationship as a link from B to A with REV="X". An anchor can have both rel and rev properties.

 New for Internet Explorer 8 Internet Explorer 8 and later. In IE8 mode, the rel content attribute locates the Alternate token regardless of its position in a space-delimited list of tokens. For example, rel will locate Alternate whether it is parsed as rel="alternate stylesheet" or rel="stylesheet alternate". For more information on IE8 mode, see Defining Document Compatibility.

Standards Information

This property is defined in HTML 3.2 World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

A, LINK, HTMLAnchorElement Constructor, HTMLLinkElement Constructor

See Also

© 2009 Microsoft Corporation 版权所有。   保留所有权利 | 商标 | 隐私权声明
Page view tracker
为轻量型库评级
x
依无脚本原则生成的轻量型库 (loband),添加了大家要求的功能:搜索框和默认代码语言选择。
您喜欢这个搜索框吗?
您喜欢标签式代码块吗?
此主题有用吗?
提供详细反馈。
谢谢
x
感谢您帮助改善 MSDN Online。
反馈意见
切换视图
经典视图
轻量型视图
无脚本视图
切换视图