RSS <title>、<link>、および<description>要素
❮完全なRSSリファレンス
定義と使用法
各<item>要素は、RSSフィードの記事または「ストーリー」を定義します。
<item>要素には、3つの必須の子要素があります。
- <title>-アイテムのタイトルを定義します(例:RSSチュートリアル)
- <link>-アイテムへのハイパーリンクを定義します(例:https://www.w3schools.com/xml/xml_rss.asp)
- <description>-アイテムについて説明します(例:W3Schoolsの新しいRSSチュートリアル)
例
<?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>
<item>
<title>RSS Tutorial</title>
<link>https://www.w3schools.com/xml/xml_rss.asp</link>
<description>New RSS tutorial on W3Schools</description>
</item>
<item>
<title>XML Tutorial</title>
<link>https://www.w3schools.com/xml</link>
<description>New XML tutorial on W3Schools</description>
</item>
</channel>
</rss>
❮完全なRSSリファレンス