link rel="script" usage

Adrian Godong picture Adrian Godong · Sep 4, 2010 · Viewed 17.5k times · Source

I am reading through the XHTML 1.0 Strict Doctype and found out that there's a value of "script" for the rel attribute on the link element.

<link rel="script" href="..." />

I tried using this tag to link external JS files, but Safari does not even load the file. So what can the tag be used for?

Update:

After rereading the DTD, it doesn't exactly list out valid values for the rel attribute. The 'script' value appears only as an example on a comment. Thus, this may or may not be implemented in all browser.

Answer

Oded picture Oded · Sep 4, 2010

The link element is there to convey relationship information between the page being viewed and the content of the element.

From the spec:

Although LINK has no content, it conveys relationship information that may be rendered by user agents in a variety of ways

So, informational only.