RSS image element
Definition and Usage
<Image> element specifies a picture to be displayed with the channel.
Tips and Notes
Note: The image must be a GIF, JPEG or PNG type.
Sub-element <image> element
label | description |
---|---|
<Description> | Optional. Provisions pictures link HTML title attribute text. |
<Height> | Optional. Define the height of the image. The default is 31. The maximum value is 400. |
<Link> | Required. The channel definition provides website hyperlinks. |
<Title> | Required. Define alternate text when the image can not be displayed is displayed. |
<Url> | Required. Defined URL of the image. |
<Width> | Optional. Define the width of the image. The default is 88. The maximum value is 144. |
Examples
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>W3CSchool Home Page</title>
<link>http://www.w3cschool.cc</link>
<description>Free web building tutorials</description>
<image>
<url>http://www.w3cschool.cc/images/logo.gif</url>
<title>W3CSchool.com</title>
<link>http://www.w3cschool.cc</link>
</image>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3cschool.cc/rss</link>
<description>New RSS tutorial on W3CSchool</description>
</item>
</channel>
</rss>
<rss version="2.0">
<channel>
<title>W3CSchool Home Page</title>
<link>http://www.w3cschool.cc</link>
<description>Free web building tutorials</description>
<image>
<url>http://www.w3cschool.cc/images/logo.gif</url>
<title>W3CSchool.com</title>
<link>http://www.w3cschool.cc</link>
</image>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3cschool.cc/rss</link>
<description>New RSS tutorial on W3CSchool</description>
</item>
</channel>
</rss>
try it"
RSS complete reference manual