网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: RSS :: RSS < title >, < link >, 与 < description > 元素s

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

RSS < title >, < link >, 与 < description > 元素s


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-29 浏览:607 :: ::

Definition and Usage
定义和用法

Each <item> element defines an article or "story" in the RSS feed.
每个<item>元素都在RSS频道内定义了一篇文章或“一段故事[信息]”。

The <item> element has three required child elements:
<item>元素包含下列三个必要子元素:

  • <title> - Defines the title of the item (e.g. RSS Tutorial)
    <title> - 定义一个项的标题(如:RSS 教程)
  • <link> - Defines the hyperlink to the item (e.g. http://www.w3pop.com/tech/school/rss)
    <link> - 定义项的超链接(例如:http://www.w3pop.com/tech/school/rss
  • <description> - Describes the item (e.g. New RSS tutorial on W3POP)
    <description> - 描述项(例如:W3POP 全新RSS教程)

Example
案例

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
  <title>W3pop Home Page</title>
  <link>http://www.w3pop.com</link>
  <description>Free web building tutorials</description>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.w3pop.com/tech/school/rss</link>
    <description>New RSS tutorial on W3pop</description>
  </item>
  <item>
    <title>XML Tutorial</title>
    <link>http://www.w3pop.com/tech/school/xml</link>
    <description>New XML tutorial on W3pop</description>
  </item>
</channel>
</rss>


自我演示

<title>、<link>以及<description> 元素
使用<title>、<link>以及<description>元素的方法

评论 (0) All