How to create RSS Feed?
All of the tools that you need is only the text editor (Notepad or Vim - if you are a Linux user).
Minimal RSS 2.0 feed example:
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>Feed name</title>
<link>http://example.com/</link>
<description>Feed description</description>
<item>
<title>Title</title>
<link>http://example.com/link-ka-prilogu</link>
<description>article description or full article</description>
</item>
</channel>
</rss>
Save the upper code rss.xml and you will have your first, personal RSS 2.0 feed. Notice that when you are saving your settings, you need to choose UTF-8 in your text editor.
Next step is to put this file on to web server, and the most important thing is:
"Open" the document on which your feed is referred (whether it is .html or .php) and in header (an area in document between tags <head>
and </head>
) write :
<link rel="alternate" type="application/rss+xml" title="Name of RSS feeda" href="/path-to-file-rss.xml" />
This way browsers and bots will just discover your RSS 2.0 feed.
This way every single file-document of yours can have its RSS 2.0 feed. If you want to have one file for your whole website, it would look like this:
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>Feed name</title>
<link>http://example.com//</link>
<description>Feed description</description>
<item>
<title>Title</title>
<link>http://example.com/link-ka-prilogu</link>
<description>article description or full article</description>
</item>
<item>
<title>Title 2</title>
<link>http://example.com/link-ka-prilogu-2</link>
<description>article description or full article</description>
</item>
<item>
<title>Title 3</title>
<link>http://example.com/link-ka-prilogu-3</link>
<description>article description or full article</description>
</item>
</channel>
</rss>
RSS Feed
When visitor come to your page, the icon will appear in address bar.
At Feed Validator you can check if your RSS feed is valid. Take a look at "our handmade", RSS 2.0 feed as you can see we got a valid RSS feed.