How RSS Makes Your Site Attractive to Search Engines: RSS Tutorials and Tips - Starting the RSS Code
(Page 2 of 8 )
Besides what I just mentioned, we should also let the RSS aggregators know what version our feed is in, so we need to have an opening tag and a closing tag, so that our feed now looks like this:
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>All About Hermit Crabs</title>
<description>A reference guide about how to care for hermit crabs, what they eat, what their social habits are, and what symptoms of illness to look for.</description>
<link>http://somehermitcrabsite.com/index.html</link>
</channel>
<item>
<title> The growth cycles of hermit crabs</title>
<description> Useful tips on how to tell when your hermit crab is ready to molt, as well as how to choose new shells for them to grow into.</description>
<link>http://somehermitcrabsite.com/hermit-crab-growth.html</link>
</item>
</rss>
This is an example of a simple RSS feed. With RSS, there are all sorts of different tags you can add into your feed, like images, what language the feed is in, copyright information, and the author’s email address, but be aware that not all aggregators will support all features you might add to your feed.
You can also create your RSS feed items directly in your HTML files. Create an unordered list, with a span class equaling “rss:item”. Add the <span class="rss:item"> and </span> tags for every headline that you want to include in the RSS feed. For example:
<li>
<span class="rss:item">
<a href="http://somehermitcrabsite.com/hermit-crab-growth.html">
The growth cycles of hermit crabs</a>
Here are some useful tips on how to tell when your hermit crab is ready to molt, as well as how to choose new shells for them to grow into.</span>
</li>
Next: XML Sitemaps >>
More Search Optimization Articles
More By Jennifer Sullivan Cassidy