RSS <image>-element

Definitie en gebruik

Het <image>-element specificeert een afbeelding die samen met het kanaal wordt weergegeven.

Tips en opmerkingen

Opmerking:Deze afbeelding moet van het type GIF, JPEG of PNG zijn.

Onderdeel van het <image>-element

Label Beschrijving
<description> Optioneel. Bepaalt de tekst van de HTML-titelattribuut van de afbeeldingskoppeling.
<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 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>