📄 rss_channel.asp
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>RSS channel Element</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<link rel="stylesheet" type="text/css" href="../stdtheme.css" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<a name="top"></a>
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="#808080">
<tr>
<td width="234" valign="top">
<a href="../default.htm"><img src="../images/w3default80.jpg" border="0" alt="W3Schools" /></a>
</td>
<th valign="middle" align="left" class="right">
<iframe style="background-color:#808080" src="../banners/bannerframe.asp@adpartner=mosso" height="90" width="728"
marginwidth="0" marginheight="0" frameborder="0" scrolling="no">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
<br /></th>
</tr>
</table>
<table style="margin-left:1px" width="800px" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="137" class="content" valign="top"><br />
<a class="left" href="../default.asp" target="_top">
<img src="../images/homeicon.gif" border="0" alt="home" /></a>
<a class="left" href="../default.asp" target="_top">
<b>HOME</b></a>
<br /><br />
<b>RSS Basic</b><br />
<a class="left" target="_top" href="default.asp" >RSS Home</a><br />
<a class="left" target="_top" href="rss_intro.asp" >RSS Introduction</a><br />
<a class="left" target="_top" href="rss_history.asp" >RSS History</a><br />
<a class="left" target="_top" href="rss_syntax.asp" >RSS Syntax</a><br />
<a class="left" target="_top" href="rss_channel.asp" style='font-weight:bold;'>RSS <channel></a><br />
<a class="left" target="_top" href="rss_item.asp" >RSS <item></a><br />
<a class="left" target="_top" href="rss_publishing.asp" >RSS Publish Feed</a><br />
<a class="left" target="_top" href="rss_readers.asp" >RSS Read a Feed</a><br />
<br />
<b>References</b>
<br />
<a class="left" target="_top" href="rss_reference.asp" >RSS Reference</a><br /><br />
<b>Selected Reading</b><br />
<a class="left" target="_top" href="../browsers/browsers_stats.asp">Web Statistics</a><br />
<a class="left" target="_top" href="../site/site_glossary.asp">Web Glossary</a><br />
<a class="left" target="_top" href="../hosting/default.asp">Web Hosting</a><br />
<a class="left" target="_top" href="../quality/default.asp">Web Quality</a><br /><br />
<a class="left" target="_top" href="../forum/default.asp">W3Schools Forum</a><br /><br />
<a class="left" target="_top" href="../about/about_helping.asp">Helping W3Schools</a><br /><br />
<script type="text/javascript"><!--
google_ad_client = "pub-3440800076797949";
/*LeftLinkUnit*/
google_ad_slot = "4854527104";
google_ad_width = 120;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="../../pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td valign="top">
<table style="border: 1px solid gray" width="100%" bgcolor="#FFFFFF" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>
<h1>RSS <channel> Element</h1>
<a href="rss_syntax.asp"><img alt="home" border="0" src="../images/btn_previous.gif" width="100" height="20" /></a>
<a href="rss_item.asp"><img alt="next" border="0" src="../images/btn_next.gif" width="100" height="20" /></a>
<hr />
<p class="intro">The RSS <channel> element describes the RSS feed.</p>
<hr />
<h2>The RSS <channel> Element</h2>
<p>Look at the following RSS document:</p>
<table class="ex" width="100%" border="1" id="table5"><tr><td>
<pre><?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0"></pre>
<pre><channel>
<title>W3Schools Home Page</title>
<link>http://www.w3schools.com</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3schools.com/rss</link>
<description>New RSS tutorial on W3Schools</description>
</item>
</channel></pre>
<pre></rss></pre>
</td></tr></table>
<p>As mentioned before, the <channel> element describes the RSS feed, and has three required child elements:</p>
<ul>
<li><title> - Defines the title of the channel (e.g. W3Schools Home Page)</li>
<li><link> - Defines the hyperlink to the channel (e.g. http://www.w3schools.com)</li>
<li><description> - Describes the channel (e.g. Free web building tutorials)</li>
</ul>
<p>The <channel> element usually contains one or more <item> elements. Each <item> element defines an article
or "story" in the RSS feed.</p>
<p>Furthermore, there are several optional child elements of <channel>. We will
explain the most important ones below.</p>
<hr />
<h2>The <category> Element</h2>
<p>The <category> child element is used to specify a category for your feed.</p>
<p>The <category> element makes it possible for RSS aggregators to group sites
based on category.</p>
<p>The category for the RSS document above could be:</p>
<table class="ex" width="100%" border="1" id="table1"><tr><td>
<pre><category>Web development</category></pre>
</td></tr></table>
<br />
<hr />
<h2>The <copyright> Element</h2>
<p>The <copyright> child element notifies about copyrighted material.</p>
<p>The copyright for the RSS document above could be:</p>
<table class="ex" width="100%" border="1" id="table2"><tr><td>
<pre><copyright>2006 Refsnes Data as. All rights reserved.</copyright></pre>
</td></tr></table>
<br />
<hr />
<h2>The <image> Element</h2>
<p>The <image> child element allows an image to be displayed when
aggregators present a feed.</p>
<p>The <image> element has three required child elements:</p>
<ul>
<li><url> - Defines the URL to the image</li>
<li><title> - Defines the text to display if the image could not be
shown</li>
<li><link> - Defines the hyperlink to the website that offers the channel</li>
</ul>
<p>The image for the RSS document above could be:</p>
<table class="ex" width="100%" border="1" id="table3"><tr><td>
<pre><image>
<url>http://www.w3schools.com/images/logo.gif</url>
<title>W3Schools.com</title>
<link>http://www.w3schools.com</link>
</image></pre>
</td></tr></table>
<br />
<hr />
<h2>The <language> Element</h2>
<p>The <language> child element is used to specify the language used to
write your document.</p>
<p>The <language> element makes it possible for RSS aggregators to group sites
based on language.</p>
<p>The language for the RSS document above could be:</p>
<table class="ex" width="100%" border="1" id="table4"><tr><td>
<pre><language>en-us</language></pre>
</td></tr></table>
<br />
<hr />
<h2>RSS <channel> Reference</h2>
<table class="ex" cellspacing="0" border="1" width="100%">
<tr>
<th align="left" valign="top" width="30%">Element</th>
<th align="left" valign="top" width="70%">Description</th>
</tr>
<tr>
<td valign="top"><a href="rss_tag_category_channel.asp"><category></a></td>
<td valign="top">Optional. Defines one or more categories for the feed</td>
</tr>
<tr>
<td valign="top"><a href="rss_tag_cloud.asp"><cloud></a></td>
<td valign="top">Optional. Register processes to be notified immediately of
updates of the feed</td>
</tr>
<tr>
<td valign="top"><a href="rss_tag_copyright.asp"><copyright></a></td>
<td valign="top">Optional. Notifies about copyrighted material</td>
</tr>
<tr>
<td valign="top"><a href="rss_tag_title_link_description_channel.asp">
<description></a></td>
<td valign="top">Required. Describes the channel</td>
</tr>
<tr>
<td valign="top"><a href="rss_tag_docs.asp"><docs></a></td>
<td valign="top">Optional. Specifies an URL to the documentation of the format
used in the feed</td>
</tr>
<tr>
<td valign="top"><a href="rss_tag_generator.asp"><generator></a></td>
<td valign="top">Optional. Specifies the program used to generate the feed</td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -