开发者

What are other uses for the <link /> tag? [duplicate]

开发者 https://www.devze.com 2023-01-23 11:32 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicate: What does <link> tag do besides including stylesheets?
This question already has answers here: Closed 12 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号