RSS <title>, <link>และ<description> Elements
❮ ข้อมูลอ้างอิง RSS ที่สมบูรณ์
ความหมายและการใช้งาน
แต่ละองค์ประกอบ <item> กำหนดบทความหรือ "เรื่องราว" ในฟีด RSS
องค์ประกอบ <item> มีองค์ประกอบย่อยที่จำเป็นสามองค์ประกอบ:
- <title> - กำหนดชื่อของรายการ (เช่น RSS Tutorial)
- <link> - กำหนดไฮเปอร์ลิงก์ไปยังรายการ (เช่น https://www.w3schools.com/xml/xml_rss.asp)
- <รายละเอียด> - อธิบายรายการ (เช่น บทแนะนำ RSS ใหม่ใน W3Schools)
ตัวอย่าง
<?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 ที่สมบูรณ์