RSS category Element

The <category> element specifies one or more categories the channel or item belongs to. The <category> element can also specify the hierarchic location in a category (the value of the <category> element is then a forward-slash separated string)."

Definition and Usage

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

The <category> element makes it possible for RSS aggregators to group sites/articles based on category.

Attributes

Tag Description
domain Optional. A string or URL that identifies a categorization taxonomy.

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

Example

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">

<channel>
  <title>w3resource Home Page</title>
  <link>https://w3resource.net</link>
  <description>Free web building tutorials</description>
  <category>IT/Internet/Web development</category>
  <item>
    <title>RSS Tutorial</title>
    <link>https://w3resource.net/xml/xml_rss</link>
    <description>New RSS tutorial on w3resource</description>
    <category>News</category>
    <category>Tutorial</category>

  </item>
</channel>

</rss>

❮ Complete RSS Reference