Click to return to the DHTML, HTML     
referrer Property     repeat Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

REL Attribute | rel Property


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

Syntax

HTML<ELEMENT REL = sRelation ... >
Scriptingobject.rel [ = sRelation ]

Possible Values

sRelationString that specifies one or more of the following comma-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 is a chapter for a set of pages.
ContentsTable of contents document.
CopyrightCopyright notice for the current page.
GlossaryGlossary for the current page.
HelpHelp document.
IndexIndex document for the current page.
NextNext document in a sequence.
Offlinehref containing a path to the CDF file to be used for an offline favorite.
PrevPrevious document in a sequence.
SectionPage is a section for a set of pages.
Shortcut Iconhref containing a path to an icon file to be used for the favorite or link.
StartFirst document of a set.
StylesheetStyle sheet.
SubsectionPage is a subsection for a set of pages.

The property is read/write with no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see 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 Shortcut Icon and Offline values apply only to the LINK object.

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

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.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
A, LINK


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.