RSS <title>, <link> 및 <description> 요소
❮ 완전한 RSS 참조
정의 및 사용
각 <item> 요소는 RSS 피드의 기사 또는 "스토리"를 정의합니다.
<item> 요소에는 세 가지 필수 자식 요소가 있습니다.
- <title> - 항목의 제목을 정의합니다(예: RSS Tutorial).
- <link> - 항목에 대한 하이퍼링크를 정의합니다(예: https://www.w3schools.com/xml/xml_rss.asp).
- <설명> - 항목 설명(예: W3Schools의 새 RSS 자습서)
예시
<?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>
<item>
<title>RSS Tutorial</title>
<link>https://www.w3schools.com/xml/xml_rss.asp</link>
<description>New RSS tutorial on W3Schools</description>
</item>
<item>
<title>XML Tutorial</title>
<link>https://www.w3schools.com/xml</link>
<description>New XML tutorial on W3Schools</description>
</item>
</channel>
</rss>
❮ 완전한 RSS 참조