w3pop.com :: 网络学院 :: RSS :: RSS < category > 元素
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).
<category>元素指定了包含一个或多个频道或项所属的目录。<category>元素也可以用于指定目录中不同层次的位置(<category>元素值是一个通过正斜杠分隔的字符串)。
The <category> element makes it possible for RSS aggregators to group sites/articles based on category.
<category>元素可以使RSS聚合器对站点/文章的目录进行归类群组。
| 标签 | 描述 |
|---|---|
| domain |
Optional. A string or URL that identifies a categorization taxonomy. 可选参数。指定一个用于确定目录分类的URL 案例: |
<?xml version="1.0" encoding="ISO-8859-1" ?> <rss version="2.0"> <channel> <title>W3pop Home Page</title> <link>http://www.w3pop.com</link> <description>Free web building tutorials</description> <category>IT/Internet/Web development</category> <item> <title>RSS Tutorial</title> <link>http://www.w3pop.com/tech/school/rss</link> <description>New RSS tutorial on W3pop</description> <category>News</category> <category>Tutorial</category> </item> </channel> </rss> |
<category> 元素
使用<category>元素的方法
评论 (0)
All