RSS <image> 元素
定義和用法
<image> 元素指定一張圖片,用於與頻道一起顯示。
提示和註釋
註釋:該圖片必須是 GIF、JPEG 或 PNG 類型。
<image> 元素的子元素
標籤 | 描述 |
---|---|
<description> | 可选。規定圖片鏈接的 HTML 標題屬性中的文本。 |
<height> | Opisyal. Idefinir ang taas ng imahe. Ang default ay 31. Ang pinakamataas na bilang ay 400. |
<link> | Hindi opisyal. Idefinir ang hyperlinked ng website na nagbibigay ng channel. |
<title> | Hindi opisyal. Idefinir ang alternatibong teksto kung ang imahe ay hindi makita. |
<url> | Hindi opisyal. Idefinir ang URL ng imahe. |
<width> | Opisyal. Idefinir ang lapad ng imahe. Ang default ay 88. Ang pinakamataas na bilang ay 144. |
Mga Halimbawa
<?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>