Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

RSS image Element

RSS Element


RSS Reference Manual Complete RSS Reference Manual


Definition and Usage

element specifies an image to be displayed with the channel.


Tips and Notes

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


element's child elements

tag Description
Optional. Specifies the text in the HTML title attribute of the image link.
Optional. Defines the height of the image. The default is 31. The maximum is 400.
Required. Defines the hyperlink to the website providing the channel.
</td><td>Required. Defines the alternative text to display when the image cannot be shown.</td></tr> <tr><td><url></td><td>Required. Defines the URL of the image.</td></tr> <tr><td><width></td><td>Optional. Defines the width of the image. The default is 88. The maximum is 144.</td></tr> </tbody> </table> <hr /> <h2>Example</h2> <? xml version = " 1.0 " encoding = " UTF-8 " ?> <pre><code>< rss version = " 2.0 " < channel < title</code></pre><p>Runoob Tutorial Home</p>

title

<

link

http://www.runoob.com

link

<

description

Free Programming Tutorials

description

<

generator

Notepad

generator

<

image

<

url

http://www.runoob.com/images/logo.png

url

<

title

Runoob Tutorial

title

<

link

http://www.runoob.com

link

image

<

item

<

title

RSS Tutorial

title

<

link

http://www.runoob.com/rss

link

<

description

Runoob Tutorial Rss Tutorial

description

item

channel

rss

Try it »


RSS Reference Manual Complete RSS Reference Manual