views:

28

answers:

2

I have seen in some browsers (Firefox for example), the RSS feed icon gets activated only when a page contains a RSS/Atom feed. How the browser detects whether the page contains a feed or not?

A: 

In firefox the rss icon (the small orange icon) can be seen at the end of the address/location bar. In the latest IE (and even 7, I think) a similar icon announces the presence of a rss feed.

vr3690
+2  A: 

Just look at the code for this page. You'll see this after some javascript in the header:

<link rel="alternate" type="application/atom+xml" title="Feed for question 'How to detect if a web URL contains a feed or not?'" href="/feeds/question/3020295"> 
brant