RSS Elementy <title>, <link> i <description>
❮ Pełne odniesienie do RSS
Definicja i użycie
Każdy element <item> definiuje artykuł lub „historię” w kanale RSS.
Element <item> ma trzy wymagane elementy podrzędne:
- <title> - Określa tytuł elementu (np. Samouczek RSS)
- <link> — definiuje hiperłącze do elementu (np. https://www.w3schools.com/xml/xml_rss.asp)
- <description> - Opisuje przedmiot (np. Nowy samouczek RSS w W3Schools)
Przykład
<?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>
❮ Pełne odniesienie do RSS