RSS <category> tag

Usage

Used with both the <item> and <channel> tags to specify a category for an entire RSS feed or for individual RSS items. The <category> tag makes it possible for RSS feed readers to group websites and content that RSS items are set for in their appropriate categories.

You can use your own category names or predefined categories relative to a domain that contains these predefined categories. If you use a predefined category, make sure to point to it in a hierarchy starting with the top level category and separating each category further down in the hierarchy with a forward slash.

Attributes

Attribute Description
domain Optional. If a predefined category is used, specifies the domain that it is from

Example

RSS feed with category set for the feed and items:
<?xml version="1.0" encoding="ISO-8859-1" ?> <rss version="2.0"> <channel> <title>Landofcode.com web tutorials updates</title> <link>http://www.landofcode.com</link> <description>Web development tutorials</description> <category>Web development</category> <item> <title>E-commerce blog posts</title> <link>http://www.landofcode.com/blog/ecommerce/</link> <description>A discussion of e-commerce issues on the web</description> <category>E-commerce</category> </item> <item> <title>Site usability</title> <link>http://www.landofcode.com/usability.html</link> <description>Learn how to improve the usability of your site</description> <category domain="http://www.dmoz.org"> Computers/Internet/Web_Design_and_Development/Web_Usability </category> </item> </channel> </rss>
Web Reference
  1. HTML reference
  2. CSS reference
  3. RSS reference


© Copyright 2009-2010 Landofcode.com
Terms of use | Privacy policy | Copyright information