Multiple RSS link tags within the head, valid markup or not?

孤街醉人 提交于 2020-01-12 07:01:13

问题


Is it valid to include multiple RSS feeds within the <head> tag?

What I mean is, tags as follow:

<link rel="alternate" type="application/rss+xml" title="feed one" href="/rss/feedone"/>
<link rel="alternate" type="application/rss+xml" title="feed two" href="/rss/feedtwo"/>

..... etc

We have a small collection (five total) of RSS feeds that we have had for a while, but have only ever included the 'main' one in within the head tags.

Is it okay to include all of them?


回答1:


Yes, that's totally valid, and the browser should offer the choice of which feed to subscribe to (those that still support rss, anyway)



来源:https://stackoverflow.com/questions/7292244/multiple-rss-link-tags-within-the-head-valid-markup-or-not

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!