xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

How to Use RSS on Your Website

 

RSS feed

 

 

 

1

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>How to Use RSS on Your Website</title>
	<!-- http://webdesign.about.com/od/rss/a/rss_whats_new.htm -->
</head>
<body>
	<div>
		<h1>How to Use RSS on Your Website</h1>
		<p></p>
		<h1>How to Create XML for an RSS Feed</h1>
		<p></p>
		<h1>How to Format RSS – Adding Style to a Feed</h1>
		<p></p>
		<h1>Anatomy of an RSS File</h1>
		<p></p>
		<h1>Legal Side of RSS Feeds – RSS Copyright</h1>
		<p></p>
	</div>
	<hr>
	<div>
		<!-- http://webdesign.about.com/od/rss/a/link_rss_feed.htm -->
		<h1>How to Add an RSS Feed to a Web Page</h1>
		<p></p>
		<h1>Anatomy of an RSS File</h1>
		<p></p>
		<h1>How to Use RSS on Your Website</h1>
		<p>8 Cheap and Easy Ways to Learn HTML</p>
		<h1>What is RSS?</h1>
		<p></p>
	</div>
</body>
</html>

 

 

 

1

demo:

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
		<item>
			<title>RSS Title</title>
			<description>This is an example of an RSS feed</description>
			<link>http://www.example.com/main.html</link>
			<lastBuildDate>Mon, 06 Sep 2010 00:01:00 +0000 </lastBuildDate>
			<pubDate>Sun, 06 Sep 2009 16:20:00 +0000</pubDate>
			<ttl>1800</ttl>
		</item>
		<item>
			<title>Example entry</title>
			<description>Here is some text containing an interesting description.</description>
			<link>http://www.example.com/blog/post/1</link>
			<guid isPermaLink="true">7bd204c6-1655-4c27-aeee-53f933c5395f</guid>
			<pubDate>Sun, 06 Sep 2009 16:20:00 +0000</pubDate>
		</item>
	</channel>
</rss>

 

 

1

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<item>
			<title>xgqfrm.xyz</title>
			<link>http://xgqfrms.xyz/index.html</link>
			<description>xgqfrms's offical website of GitHub!</description>
			<atom:link href="https://xgqfrms.xyz/feeds/posts.rss" rel="self" type="application/rss+xml"/>
			<atom:link href="https://xgqfrms.xyz/feeds/atom.xml" rel="self" type="application/atom+xml"/>
		</item>
		<item>
			<title>xgqfrm.xyz</title>
			<link>http://xgqfrms.xyz/index.html</link>
			<description>xgqfrms's offical website of GitHub!</description>
			<atom:link href="https://xgqfrms.xyz/feeds/posts.rss" rel="self" type="application/rss+xml"/>
			<atom:link href="https://xgqfrms.xyz/feeds/atom.xml" rel="self" type="application/atom+xml"/>
		</item>
		<item>
			<title>xgqfrm.xyz</title>
			<link>http://xgqfrms.xyz/index.html</link>
			<description>xgqfrms's offical website of GitHub!</description>
			<atom:link href="https://xgqfrms.xyz/feeds/posts.rss" rel="self" type="application/rss+xml"/>
			<atom:link href="https://xgqfrms.xyz/feeds/atom.xml" rel="self" type="application/atom+xml"/>
		</item>
	</channel>
</rss>

 

 

 

 
posted @ 2016-09-28 21:28  xgqfrms  阅读(83)  评论(3编辑  收藏  举报