RSS <title>, <link>,and<description>Elements


RSS 参考手册Complete RSS Reference

Definition and Usage

The <item> element defines an article in an RSS feed. This element has three required child elements:

  • <title> - defines the title of the item (for example: RSS Tutorial)
  • <link> - defines the hyperlink to the item (for example: http://www.example.com/rss/)
  • <description> - describes the item (for example: w3school's latest RSS Tutorial)

Examples

<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <title>Example Homepage</title> <link>http://www.example.com</link> <description>Free Programming Tutorials</description> <item> <title>RSS Tutorial</title> <link>http://www.example.com/rss</link> <description>Example RSS Tutorial</description> </item> <item> <title>XML Tutorial</title> <link>http://www.example.com/xml</link> <description>Example XML Tutorial</description> </item> </channel> </rss>

Try it Yourself »

RSS 参考手册Complete RSS Reference Other Extensions