Add an Enclosure

If you want to add audio, video, or even still JPEG images to your feed, you’ll need to create an enclosure for them in which you’ll specify their URL, size, and MIME type.

To find the size of an enclosure:

1.
Select the file that you want to add to your RSS feed.
2.
In Windows, choose Properties, and on the Mac, select Get Info.
3.
Jot down the number of bytes in the desired enclosure (Figure 25.8).
Figure 25.8. When you choose the item on the Desktop and then either choose Properties (on Windows) or Get Info (on a Mac, shown), you’ll see the number of bytes in the enclosure (in this case, 36,699,714).

To add an enclosure: ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.