RSS <channel> tag
The <channel> tag is used to describe an RSS feed. Within the <channel> tag, the <item> tag is used for each item in the RSS feed. Both these tags have three required child tags:
- <title> - sets the title of the RSS feed/item
- <link> - specifies the URL where the RSS feed/item content can be found
- <description> - sets a description for the RSS feed/item
We discussed the core aspects of the <channel> tag in the RSS structure page, but there is much more you can do with it. Besides it's required elements, the <channel> tag has a bunch of optional elements.
category
Specifies a category for your RSS feed. This makes it possible for RSS feed readers to group your website in its appropriate category.
generator
Specifies the program used to create your RSS feed. Should be used if the RSS feed is created using an automatic RSS feed creator like myRSScreator
language
Specifies the language your RSS feed is written in. This makes it possible for RSS feed readers to group your website in a category based on language.
NOTE: The language should be specified using one of the ISO language codes. In the above we specify US English.
lastBuildDate
Specifies the most recent time the content of your RSS feed was modified.
ttl
ttl stands for Time To Live. This element specifies how many minutes your RSS feed can stay cached before it is refreshed.
For a full list of channel elements (optional and required) check out our RSS channel elements reference page.