While RSS feed and feed readers aren’t quite as popular as they used to be, RSS are still important for your site visitors who want to be notified whenever your page updates. In addition, RSS feeds can be used in a number of ways to promote your content using social media.
Let’s first have a look at how to create an RSS feed for your site from scratch.
RSS Feed Format: HEADER
An RSS feed for your site is essentially an XML file. You must adhere to a specific format for the XML file for it to be identified as an RSS feed.
Let’s take a look at the tags you need to include in your XML file to create your RSS feed:
<?xml version="1.0" encoding="utf-8"?> <rss version="2.0"> <channel>
The first two lines specify the XML and RSS version as you can see. The third line opens a “channel” tag. This is what would contain all the information for your channel or website. Add these three lines as they are.
Next, some code about the feed: