Like Quertime on Facebook!

How to Create an RSS Feed for Your Website

Filed under Web Development

RSS (commonly stands for Really Simple Syndication) is an XML based content format used for publishing frequently updated works such as news headlines, blog entries, audio, video, etc. It can help drive more traffic to your website as there is a large number of people stay updated using feed readers which pull in updates from the sites subscribed. Let’s have a look at how to create an RSS feed for your website. If you are looking for RSS feed icon that suits your website, you can check out our best RSS feed icon collection.

how_to_create_an_rss_feed

1. Open a text editor like Notepad

2. Enter information (Title, Description and Link) about your webpage

Example:

Quertime Help

Visit our Help Centers to learn Quertime products and solve any problems you encounter.

http://www.quertime.com/support/

3. Surround the information with xml tags

<title>Quertime Help</title>
<description>Visit our Help Centers to learn Quertime
products and solve any problems you encounter.</description>
<link>http://www.quertime.com/support/</link>

4. Define the information as an “item” by using item tag

<item>
<title>Quertime Help</title>
<description>Visit our Help Centers to learn Quertime
products and solve any problems you encounter.</description>
<link>http://www.quertime.com/support/</link>
</item>

5. If you have another item you want to syndicate, simply add more item elements by repeating step 2, 3 & 4. New items tend to be inserted at the top, with old items removed from the bottom

<item>
<title>Contact Us</title>
<description>Quertime has a dedicated customer service
team to respond to your questions.</description>
<link>http://www.quertime.com/contact-us/</link>
</item>
<item>
<title>Quertime Help</title>
<description>Visit our Help Centers to learn Quertime
products and solve any problems you encounter.</description>
<link>http://www.quertime.com/support/</link>
</item>

6. Define your site as a “channel” by surrounding all the item information with channel tags, then add the same tags as with the items: title, description and link at the top. This time the information will be about your entire site, rather than a particular page.

<title>Quertime</title>
<description>Quertime provides step by step instructions, how-do guides,
tutorials and tips to help people solve the needs of everyday life.</description>
<link>http://www.quertime.com</link>
<channel>
<item>
<title>Contact Us</title>
<description>Quertime has a dedicated customer service
team to respond to your questions.</description>
<link>http://www.quertime.com/contact-us/</link>
</item>
<item>
<title>Quertime Help</title>
<description>Visit our Help Centers to learn Quertime
products and solve any problems you encounter.</description>
<link>http://www.quertime.com/support/</link>
</item>
</channel>

7. Add a tag at the top of the file saying that this is written according to the XML 1.0 specifications. Right under this, you have to add another tag indicating the RSS version you are using

<?xml version="1.0"?>
<rss version="2.0">

8. Insert a closing RSS tag at the bottom of the file

</rss>

9. Now, the complete file should look like this

<?xml version="1.0"?>
<rss version="2.0">
<title>Quertime</title>
<description>Quertime provides step by step instructions, how-do guides,
tutorials and tips to help people solve the needs of everyday life.</description>
<link>http://www.quertime.com</link>
<channel>
<item>
<title>Contact Us</title>
<description>Quertime has a dedicated customer service
team to respond to your questions.</description>
<link>http://www.quertime.com/contact-us/</link>
</item>
<item>
<title>Quertime Help</title>
<description>Visit our Help Centers to learn Quertime
products and solve any problems you encounter.</description>
<link>http://www.quertime.com/support/</link>
</item>
</channel>
</rss>

10. Save the file in xml format. For example, “feed.xml”

11. Now you can place the file anywhere we want on your web server. If you put it in the root or home directory, then the address to your RSS file would be “http://www.quertime.com/feed.xml”

12. Add the following code in the head tag on your web page. You should be able to see the little orange RSS icon in your browser’s address bar.

<link rel="alternate" type="application/rss+xml" title="Quertime Feeds"
href="http://www.quertime.com/feed.xml" />

For more information on RSS, read the RSS 2.0 specification

Author: Jules, Quertime Editorial

Founder of Quertime.com. Connect with him on Facebook, follow him on Twitter or circle him on Google+.

Tags: ,

Comments are closed.