RSS title, link, 和description 元素
定義和用法
<channel> 元素描述RSS feed,該元素有三個必需的子元素:
- <title> - 定義頻道的標題(例如:w3school 首頁)
- <link> - 定義指向頻道的超連接(例如:http://www.w3cschool.cc/)
- <description> - 描述頻道(例如:免費的網站建設教程)
實例
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>W3CSchool Home Page</title>
<link>http://www.w3cschool.cc</link>
<description>Free web building tutorials</description>
</channel>
</rss>
<rss version="2.0">
<channel>
<title>W3CSchool Home Page</title>
<link>http://www.w3cschool.cc</link>
<description>Free web building tutorials</description>
</channel>
</rss>
嘗試一下»
完整RSS參考手冊