W3Schools
home HOME Tutorials | References | Examples | Forum | About
Search W3Schools :

RSS Basic
RSS Home
RSS Introduction
RSS History
RSS Syntax
RSS <channel>
RSS <item>
RSS Publish Feed
RSS Read a Feed

Examples
RSS Examples

References
RSS Reference

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

W3Schools Tutorials
W3Schools Forum

Helping W3Schools

RSS <category> Element


RSS Reference Complete RSS Reference

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="ISO-8859-1" ?>
<rss version="2.0">
<channel>
  <title>W3Schools Home Page</title>
  <link>http://www.w3schools.com</link>
  <description>Free web building tutorials</description>
  <category>IT/Internet/Web development</category>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.w3schools.com/rss</link>
    <description>New RSS tutorial on W3Schools</description>
    <category>News</category>
    <category>Tutorial</category>
  </item>
</channel>
</rss>


Try-It-Yourself Demos

The <category> element
How to use the <category> element.


RSS Reference Complete RSS Reference




diploma   

Get Your Diploma!

W3Schools' Online Certification Program is the perfect solution for busy professionals who need to balance work, family, and career building.

The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.

The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.



Jump to: Top of Page or HOME or Printer Friendly Printer friendly page

W3Schools provides material for training only. We do not warrant the correctness of its contents. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 1999-2008 by Refsnes Data. All Rights Reserved.

Validate Validate W3C-WAI level A conformance icon W3Schools was converted to XHTML in December 1999