RSS <kategori> Elemen
Referensi RSS Lengkap
Definisi dan Penggunaan
Elemen <category> menentukan satu atau beberapa kategori yang dimiliki saluran atau item. Elemen <category> juga dapat menentukan lokasi hierarkis dalam suatu kategori (nilai elemen <category> adalah string yang dipisahkan garis miring ke depan).
Elemen <category> memungkinkan agregator RSS untuk mengelompokkan situs/artikel berdasarkan kategori.
Atribut
Tag | Description |
---|---|
domain | Optional. A string or URL that identifies a
categorization taxonomy. Example: |
Contoh
<?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>
Referensi RSS Lengkap