• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

In this hour you've seen how to embed video and sound into a Web page. But remember that the <embed /> tag (and its successor, the <object> tag) can be used to include a vast array of media types besides just AVI and MIDI files. Some of these media types are alternative audio and video formats that aim to achieve greater compression, quality, or compatibility than the Windows standard formats. Others, such as Shockwave and QuickTime VR, add a variety of interactive features that old-fashioned audiovisual media types lack. Table 17.1 summarizes the tags discussed in this hour.

Table 17.1. HTML Tags and Attributes Covered in Hour 17
TagAttributeFunction
<embed /> Embeds a file to be read or displayed by a Netscape plug-in application.
 src="…"The URL of the file to embed.
 width="…"The width of the embedded object in pixels.
 height="…"The height of the embedded object in pixels.
 align="…"Determines the alignment of the media window. Values are the same as for the <img> tag.
 vspace="…"The space between the media and the text above or below it.
 hspace="…"The space between the media and the text to its left or right.
 border="…"Draws a border of the specified size in pixels around the media.
<noembed>…</noembed> Alternate text or images to be shown to users who do not have a plug-in installed or are using browsers that don't recognize the <embed /> tag.
<object>…</object> Inserts images, videos, Java applets, ActiveX controls, or other objects into a document. (See Hour 18 for attributes of the <object> tag.)



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint