RSS <이미지> 요소
❮ 완전한 RSS 참조
정의 및 사용
<image> 요소를 사용하면 애그리게이터가 피드를 표시할 때 이미지를 표시할 수 있습니다.
팁 및 참고 사항
참고: 이미지는 GIF, JPEG 또는 PNG 유형이어야 합니다.
<image>의 자식 요소
Tag | Description |
---|---|
<description> | Optional. Specifies the text in the HTML title attribute of the link around the image |
<height> | Optional. Defines the height of the image. Default is 31. Maximum value is 400 |
<link> | Required. Defines the hyperlink to the website that offers the channel |
<title> | Required. Defines the text to display if the image could not be shown |
<url> | Required. Specifies the URL to the image |
<width> | Optional. Defines the width of the image. Default is 88. Maximum value is 144 |
예시
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>W3Schools Home Page</title>
<link>https://www.w3schools.com</link>
<description>Free web building tutorials</description>
<image>
<url>https://www.w3schools.com/images/logo.gif</url>
<title>W3Schools.com</title>
<link>https://www.w3schools.com</link>
</image>
<item>
<title>RSS Tutorial</title>
<link>https://www.w3schools.com/xml/xml_rss.asp</link>
<description>New RSS tutorial on W3Schools</description>
</item>
</channel>
</rss>
❮ 완전한 RSS 참조