How to: Add HTML markup to tell browser about RSS on page…

If you have a webpage where you have related feeds, you can add HTML markup in the HEAD section which will make many browsers autodetect your feeds. It is not rocket science simply add the following to the HEAD section:

 

<link rel="alternate" type="application/rss+xml" title="Your RSS title" href="The RSS URL" />

 

Thats all there is to it! Smiley

 

Other usefull information related to RSS
  • If you create the feed remember til set the ContentType to “application/xml”
  • You can also add an XSLT to transform you output on the client (see for instance here: http://www.dr.dk/nyheder/service/feeds/allenyheder) If you view the feed in Chrome it will be a transformed output, but it seems that Firefox will not transform the feed.
US

Leave a Reply