RSS <category>Element


RSS 参考手册Complete RSS Reference

Definition and Usage

The <category> element specifies one or more categories to which a channel or item belongs. The <category> element can also specify the hierarchical position in a directory (the value of the <category> element is a forward-slash-separated string).

The <category> element allows RSS aggregators to classify and group site/article categories (grouping sites/articles based on the category).


Attributes

Tag Description
domain

Optional. A string or URL that identifies the taxonomy of the category.

Example:

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



Examples

<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <title>Example Homepage</title> <link>http://www.example.com</link> <description>Free programming tutorials</description> <item> <title>RSS Tutorial</title> <link>http://www.example.com/rss</link> <description>Example RSS Tutorial</description> <category>RSS</category> </item> </channel> </rss>

Try it Yourself »

RSS 参考手册Complete RSS Reference Other Extensions