The syntax rules of RSS 2.0 are very simple and very strict.
RSS is used to share content between websites.
With RSS, you register your content with companies called aggregators.
So, to be a part of it: First, create an RSS document and save it with an .xml extension. Then, upload the file to your website. Next, register with an RSS aggregator. Each day the aggregator searches the registered websites for RSS documents, verifies the link, and displays information about the feed so clients can link to documents that interests them.
Tip: Read our RSS Publishing chapter to view free RSS aggregation services.
RSS documents use a self-describing and simple syntax.
Here is a simple RSS document:
The first line in the document - the XML declaration - defines the XML version and the character encoding used in the document. In this case the document conforms to the 1.0 specification of XML and uses the ISO-8859-1 (Latin-1/West European) character set.
The next line is the RSS declaration which identifies that this is an RSS document (in this case, RSS version 2.0).
The next line contains the <channel> element. This element is used to describe the RSS feed.
The <channel> element has three required child elements:
Each <channel> element can have one or more <item> elements.
Each <item> element defines an article or "story" in the RSS feed.
The <item> element has three required child elements:
Finally, the two last lines close the <channel> and <rss> elements.
The syntax for writing comments in RSS is similar to that of HTML:
Because RSS is XML, keep in mind that:
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.