RSS <channel> tag
NOTE: This tag is required in an RSS feed.
Usage
Describes an RSS feed with a title, description, and a URL where the RSS can be found. All the items in an RSS feed are placed inside of the <channel> tag using the <item> tag.
Other required RSS tags include <description>, <item> <link>, and <title>
Child elements
NOTE: These are all required with the <channel> tag
| Tag | Description |
|---|---|
| <title> | Sets the title of the RSS feed |
| <link> | Specifies the URL where the RSS feed can be found |
| <description> | Sets a description for the RSS feed |
Some optional tags for <channel> include <category>, <generator>, and <language>
Example
RSS feed with the appropriate channel tag:
<?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 to the site</description>
</item>
</channel>
</rss>