RSS
Element
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. | |
|
| Required. Defines the alternative text to display when the image cannot be shown. |
| Required. Defines the URL of the image. | |
| Optional. Defines the width of the image. The default is 88. The maximum is 144. |
Example
xml version = " 1.0 " encoding = " UTF-8 " ?><
rss
version
=
"
2.0
"
<
channel
<
titleRunoob Tutorial Home
title
<
link
http://www.runoob.com
link
<
descriptionFree Programming Tutorials
description
<
generator
Notepad
generator
<
image
<
url
http://www.runoob.com/images/logo.png
url
<
titleRunoob Tutorial
title
<
link
http://www.runoob.com
link
image
<
item
<
titleRSS Tutorial
title
<
link
http://www.runoob.com/rss
link
<
descriptionRunoob Tutorial Rss Tutorial
description
item
channel
rss
Try it »
Complete RSS Reference Manual