RSS 2.0 and Atom 1.0 at a glance
Web feeds let readers and aggregators subscribe to a site’s updates. Two formats dominate: RSS 2.0, the simpler and older syndication dialect, and Atom 1.0, the stricter IETF standard. This reference lists the common elements of both, flags which are required, and shows whether each lives at the feed level or the per-item level.
How it works
A feed is an XML document with a single feed-level container holding metadata plus a repeating per-item container:
<rss version="2.0">
<channel>
<title>Example</title>
<link>https://example.com</link>
<description>Latest posts</description>
<item>
<title>Post</title>
<guid isPermaLink="false">tag:example.com,2026:1</guid>
<pubDate>Wed, 02 Oct 2002 13:00:00 GMT</pubDate>
</item>
</channel>
</rss>
In Atom the container is feed with repeated entry elements, and the required
fields are stricter: id, title and updated are mandatory on both the feed
and every entry. Dates differ too — RSS uses RFC 822, Atom uses RFC 3339.
Tips and notes
- Always include a stable
guid(RSS) orid(Atom) so readers de-duplicate entries. - Podcasts attach media with an RSS
enclosurecarryingurl,lengthandtype. - Add a
rel="self"link so validators and aggregators find the canonical feed URL. - Set the correct content type:
application/rss+xmlorapplication/atom+xml.