Click to Rate and Give Feedback
Properties
 rel Property
REL Attribute | rel Property

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

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:
AlternateSubstitute version of the file that contains the link.
AppendixPage that is an appendix for the set of pages.
BookmarkBookmark.
ChapterPage that is a chapter for a set of pages.
ContentsTable of contents document.
CopyrightCopyright notice for the current page.
FeedUrl New for Windows Internet Explorer 8 Internet Explorer 8. The anchor is an alternate feed for a WebSlice. See Subscribing to Content with WebSlice World Wide Web link.
GlossaryGlossary for the current page.
HelpHelp document.
IndexIndex document for the current page.
NextNext document in a sequence.
OfflinePath to the Channel Definition Format (CDF) file to be used for an offline favorite.
PrevPrevious document in a sequence.
SearchInternet Explorer 7 and later. The link refers to an OpenSearch Description file. (See Search Provider Extensibility in Internet Explorer 7 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.
SectionPage that is a section for a set of pages.
Shortcut IconPath to an icon file to be used for the favorite or link. See How to Add a Shortcut Icon to a Web Page.
StartFirst document of a set.
StylesheetStyle sheet.
SubsectionPage that is a subsection for a set of pages.

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

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. 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.

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

See Also

rev
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker