rel attribute | rel property

all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
This topic has not yet been rated - Rate this topic

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

HTML 4.01 Specification, Section 12.2

Syntax

HTML<element rel="p" ... >
JavaScript

p = object.rel

Property values

Type: String

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

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

FeedUrl

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 CDF file to be used for an offline favorite.

Prev

Previous document in a sequence.

Search

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.

Standards information

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 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.

See also

a
link
Reference
rev
Other Resources
Subscribing to Content with Web Slices

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.