RSS <image> element

Definition and usage

The <image> element specifies an image to be displayed together with the channel.

Tips and notes

Note:The image must be of GIF, JPEG, or PNG type.

Child element of the <image> element

Tag Description
<description> Optional. Specifies the text in the HTML title attribute of the image link.
<height> Optional. Defines the height of the image. The default is 31. The maximum value is 400.
<link> Required. Defines the hyperlink of the website providing the channel.
<title> Required. Defines the alternative text to be displayed when the image cannot be displayed.
<url> Required. Defines the URL of the image.
<width> Optional. Defines the width of the image. The default is 88. The maximum value is 144.

Example

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
  <title>CodeW3C.com Home Page</title>
  <link>http://www.codew3c.com</link>
  <description>Free web building tutorials</description>
  <image>
    <url>http://www.codew3c.com/images/logo.gif</url>
    <title>codew3c.com</title>
    <link>http://www.codew3c.com</link>
  </image>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.codew3c.com/rss</link>
    <description>New RSS tutorial on CodeW3C.com</description>
  </item>
</channel>
</rss>