RSS <category>
Element
Definition and Usage
The <category>
element specifies one or more categories to which a channel or item belongs. The <category>
element can also define a hierarchical position within a directory (the value of the <category>
element is a forward-slash-separated string).
The <category>
element allows RSS aggregators to group sites/articles by category (grouping sites/articles based on their category).
Attributes
Tag | Description |
---|---|
domain | Optional. A string or URL that identifies the categorization taxonomy. Example: <category domain="syndic8">IT</category> |
Example
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>tutorialpro.org Homepage</title>
<link>http://www.tutorialpro.org</link>
<description>Free Programming Tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.tutorialpro.org/rss</link>
<description>tutorialpro.org Rss Tutorial</description>
<category>RSS</category>
</item>
</channel>
</rss>