RSS is an XML structure that contains the below items

  • First line is an <?xml version="1.0" encoding="UTF-8" ?>

  • is a root element that contains version number and namespace <rss version="2.0" xmlns:atom="">

  • : Contains metadata about fields

    • <title>: Blog Title
    • <link>: Link to website
    • <description>: Description
    • <generator>: App or program used to generate a feed, Optional
    • <language>: language used for a website page, Optional
    • <managingEditor>: Email address Content Editor, Optional
  • <item>: Specify individual content in a RSS feed

    • <title>: item page Title
    • <link>: Link to content page
    • <description>: Description
    • <pubDate> : Published Date

Here is an RSS XML example

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <title>Blog RSS Feed</title>
    <description>This is an example  Blog RSS feed.</description>

      <title>Blog article Title 1</title>
      <description>Article description.</description>
      <pubDate>Sun, 01 Jan 2023 12:00:00 GMT</pubDate>

      <title>Blog article Title 2</title>
      <description>Article description.</description>
      <pubDate>Mon, 02 Jan 2023 12:00:00 GMT</pubDate>

    <!-- More articles... -->


How browsers understand for a Website RSS feed

Once the RSS feed is created in feed.xml, You have to tell the browser.

One way, using a link tag.

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

Another way, using robots.txt with a sitemap field