转圈圈

RSS

XML RSS

RSS Example

<?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>

What Is RSS?

  • RSS stands for Really Simple Syndication

  • RSS allows you to syndicate you site content

  • RSS difines an easy way to share and view headlines and content

  • RSS files can be antomatically updated

  • RSS allows personalized views for different sites

  • RSS is written in XML

Get Your RSS Feed Up On The Web

  1. Name your RSS file. Notice that the file must have an .xml extension.

  2. Validate your RSS file (a good validator can be found at http://www.feedvalidator.org).

  3. Upload the RSS file to your web directory on your web server.

  4. Copy the little orange RSS Logo or XML Logo button to your web directory.

  5. Put the little orange "RSS" or "XML" button on the page where you will offer RSS to the world (e.g. on your home page). Then add a link to the button that links to the RSS file. The code will look something like this:


    .

  6. Submit your RSS feed to the RSS Feed Directories (you can Google or Yahoo for "RSS Feed Directories"). Note! The URL to your feed is not your home page, it is the URL to your feed, like "https://www.w3schools.com/xml/myfirstrss.xml". Here is a free RSS aggregation service:

Newsisfree: Register here

  • Register your feed with the major search engines:

Google - http://www.google.com/submityourcontent/website-owner
Bing - http://www.bing.com/toolbox/submit-site-url

  • Update your feed - After registering your RSS feed, you must make sure that you update your content frequently and that your RSS feed is constantly available.
posted @ 2018-11-25 16:19  rosendolu  阅读(163)  评论(0编辑  收藏  举报