Search code examples
doctypexhtml-1.0-strict

link rel="script" usage


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.


Solution

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