RSS <item> tag
NOTE: This tag is required in an RSS feed.
Usage
Sets items in an RSS feed with a title, description, and a URL where the item content can be found.
Other required RSS tags include <channel>, <description>, <link>, and <title>
Child elements
NOTE: These are all required with the <item> tag
| Tag | Description |
|---|---|
| <title> | Sets the title of the item |
| <link> | Specifies the URL where the item content can be found |
| <description> | Sets a description for the item |
Some optional tags for <item> include <author>, <category>, and <comments>
Example
RSS feed with items:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>Landofcode.com web tutorials updates</title>
<link>http://www.landofcode.com</link>
<description>Web development tutorials</description>
<item>
<title>Site usability</title>
<link>http://www.landofcode.com/usability.html</link>
<description>Learn how to improve the usability of your site</description>
</item>
<item>
<title>New HTML tutorials</title>
<link>http://www.landofcode.com/html-tutorials/</link>
<description>Five new HTML tutorials have been added</description>
</item>
<item>
<title>Online code editor</title>
<link>http://www.landofcode.com/online-code-editor.php</link>
<description>New functionality added to the code editor</description>
</item>
</channel>
</rss>