RSS <category>要素
❮完全なRSSリファレンス
定義と使用法
<category>要素は、チャネルまたはアイテムが属する1つ以上のカテゴリを指定します。<category>要素は、カテゴリ内の階層位置を指定することもできます(<category>要素の値はスラッシュで区切られた文字列になります)。
<category>要素を使用すると、RSSアグリゲーターがカテゴリに基づいてサイト/記事をグループ化できます。
属性
Tag | Description |
---|---|
domain | Optional. A string or URL that identifies a
categorization taxonomy. Example: |
例
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>W3Schools Home Page</title>
<link>https://www.w3schools.com</link>
<description>Free web building tutorials</description>
<category>IT/Internet/Web development</category>
<item>
<title>RSS Tutorial</title>
<link>https://www.w3schools.com/xml/xml_rss.asp</link>
<description>New RSS tutorial on W3Schools</description>
<category>News</category>
<category>Tutorial</category>
</item>
</channel>
</rss>
❮完全なRSSリファレンス