RSS <category> Element

Definition and Usage

<category> element defines one or more categories to which a channel or item belongs. The <category> element can also define the hierarchical position within a directory (the value of the <category> element is a string separated by forward slashes).

The <category> element can allow RSS aggregators to classify and group the directory of sites/articles (grouping sites/articles based on directories).

Attribute

Tag Description
domain

Optional. String or URL, identifies the categorization scheme of the category.

Example:

<category domain="syndic8">IT</category>

Example

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
  <title>CodeW3C.com Home Page</title>
  <link>http://www.codew3c.com</link>
  <description>Free web building tutorials</description>
  <category>IT/Internet/Web development</category>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.codew3c.com/rss</link>
    <description>New RSS tutorial on CodeW3C.com</description>
    <category>News</category>
    <category>Tutorial</category>
  </item>
</channel>
</rss>