RSS <enclosure> tag

Usage

Specifies a media file to be included with an RSS item.

Attributes

Attribute Description
length Required. The length of the media file in bytes
type Required. The type of media file
url Required. The URL where the media file is located. The URL must be called using http.

Example

RSS feed with a media file:
<?xml version="1.0" encoding="ISO-8859-1" ?> <rss version="2.0"> <channel> <title>Landofcode.com web tutorials updates</title> <link>http://www.landofcode.com</link> <description>Web development tutorials</description> <item> <title>Site usability</title> <link>http://www.landofcode.com/usability.html</link> <description>Learn how to improve the usability of your site</description> <enclosure length="53349" type="audio/x-wav" url="http://www.landofcode.com/audio/info.wav" /> </item> <item> <title>New HTML tutorials</title> <link>http://www.landofcode.com/html-tutorials/</link> <description>Five new HTML tutorials have been added</description> </item> </channel> </rss>
Web Reference
  1. HTML reference
  2. CSS reference
  3. RSS reference


© Copyright 2009-2010 Landofcode.com
Terms of use | Privacy policy | Copyright information