Possible Duplicate:
What does <link> tag do besides including stylesheets?
<link rel="stylesheet" type="text/css" href="example.css"开发者_如何学Go />
With the link tag we can define a relationship type and mime type, but I've never seen it done. What are some examples of real uses for the other rel attributes? What sort of support issues exist?
I'm not sure what we can and cannot do with this tag, how the browser deals with it, etc...
From my own playing around, it looks like I can't read any of the called data via JavaScript, but the browser still deals with the content.
RSS:
<link rel="alternate" type="application/rss+xml" title="RSS FEED" href="/RSS" />
FAVICON:
<link rel="shortcut icon" href="/favicon.ico">
iPHONE/iPAD ICON:
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
SEARCH:
<link rel="search" type="application/opensearchdescription+xml" title="" href="/search.xml">
I am sure there are an infinate number of proprietary uses for this.
精彩评论