Home | Top | Web development | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves the relationship between the object and the destination of the link.
Syntax
< ELEMENT REL = sRelation ... > |
object.rel [ = sRelation ] |
Possible Values
sRelation | String that specifies or receives one or more of the following space delimited values in any order:
|
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 Shortcut Icon and Offline 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 .
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 and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
|
A , LINK |
Home | Top | Web development | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |