Forum Moderators: open

Message Too Old, No Replies

<LINK>

What else can it do?

         

Filipe

9:06 pm on May 6, 2002 (gmt 0)

10+ Year Member



I understand <LINK> is used to connect external resources to a document... but the only application I've seen of it is with external CSS. What else can it be used for?

pcguru333

9:28 pm on May 6, 2002 (gmt 0)

10+ Year Member



You can define links for User Agents

want details?

See [w3.org...]

pcguru333

9:31 pm on May 6, 2002 (gmt 0)

10+ Year Member



Myself I have never used it for anything besides external stylesheets...

Anyone here that uses it for anything else? How prevelant is its use on the web outside stylesheets?

mbauser2

11:06 pm on May 6, 2002 (gmt 0)

10+ Year Member



I've used it (for many of the purposes described in the HTML specs) on all my pages since 1995, but its still kinda theoretical. Only oddball browers like Lynx and Emacs-w3 seem to implement it right now.

For example, Lynx has always used

<link rev="made" href="mailto:user@example.com">

for its "send a comment to the page owner" function. Lynx also turns some of the other useful values (like "Home" and "Search") into links at the top of a page.

After stylesheets, the most popular use of LINK is to point to favicons using the format <link rel="shortcut icon" href="favicon.ico"> . MSIE and Mozilla both use that, but use it differently. MSIE still only calls the icon if you bookmark the page, Mozilla calls it whenever you visit the page. (Really Pedantic Note: The value "shortcut icon" would be illegal in HTML 2.0, because HTML 2.0 declares the datatype for REL/REV as NAMES, meaning spaces are used to separate multiple values of the attribute. HTML 3.2 and above changes REL/REV to CDATA datatype, allowing spaces. I never agreed with that change.)

I think some search robots have started following LINK elments. I recently added some rel="alternate" links pointing from the HTML version of certain pages to their HDML equivilents, and ia_archiver snarfed the HDML pages a week later. So far as I know, there are no "normal" links on the web pointing to those pages. (HDML is a dead language. I only added the LINK links because I was being fussy.)

keyplyr

12:19 am on May 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




MSIE and Mozilla will also use it to "preload" a file while still displaying the current file. Example:

<link rel="next" href="next_page.html">

An alternative to preload JavaScripts, the tag placed in the <head> will help to load the next page more quickly.

joshie76

8:11 am on May 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Wow, keyplyr. I never knew that - could come in handy some day.

Do you know what versions of MSIE support this?

keyplyr

8:25 am on May 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



>Do you know what versions of MSIE support this?

Sorry Joshie, don't know but I started using the LINK tag in this way at the end of '98.

Just to clarify, I use the term "preload" very loosely and am not sure if the browser actually downloads the specified file or whether it just finds the path. Whichever, it does make a significant difference in load time when that next file is bloated. And it only can be used, in this way, once per page.