Name

REL — NN n/a IE 3 HTML 4

Synopsis

REL=”linkTypes"

Optional

Defines the relationship between the current element and the destination of the link. Also known as a forward link, not to be confused in any way with the destination document whose address is defined by the HREF attribute. The HTML 4.0 recommendation defines several link types; it is up to the browser to determine how to employ the value. This attribute has meaning in IE 4 primarily for the LINK element, although there is significant room for future application for tasks such as assigning an A element (acting as a link) to a button in a static navigation bar pointing to the next or previous document in a series. The element must include an HREF attribute for the REL attribute to be applied.

Example

<A REL="next chapter" HREF="chapter3.html">Chapter 3</A>

Value

Case-insensitive, space-delimited list of HTML 4.0 standard link types applicable to the element. Sanctioned link types are:

alternate

contents

index

start

appendix

copyright

next

stylesheet

bookmark

glossary

prev

subsection

chapter

help

section

 

In addition, IE 3 defined a fixed set of four values: same | next | parent | previous.

Default

None.

Object Model Reference

IE

[window.]document.links[i].rel

[window.]document.all.elementID.rel

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.