Atom "feed/link" Element


What is the Atom "feed/link" element? How To Generate a "feed/link" element?



The <link> element is not a required sub-element of the <feed> element. But it is strongly recommended that you provide a link element with rel="self" for each of your feed documents.

The rule for feed link element is simple. It needs two attributes:

  • rel="self" - Indicating that this link is providing the URL of this feed document itself.
  • href="urlOfThisFeed" - Specifying the URL of this feed document.

For example, if you have a feed document located at, you should generate a feed link element like this:

 <link rel="self" href=""/>


Atom Specification - RFC 4287

⇒⇒RSS FAQ and Tutorials

2017-09-25, 107👍, 0💬