Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1

(^604) Appendix A XHTML Reference
Table A.33tag attributes
Attribute Value Usage
classid Uniquely identifies the player software. For
QuickTime, it must be set to
"clsid:02BF25D5-8C17-4B23-BC80-
D3488ABDDC6B"
Identifies an ActiveX control that must be installed
on the visitor’s PC. If the ActiveX control is not
installed, the browser can automatically download
and install it.
codebase For QuickTime and Internet Explorer, this value
must be http://www.apple.com/qtactivex/
qtplugin.cab—the location of the most recent
version of the QuickTime player.
Specifies a relative path for the location of the
plug-in.
data Valid file name, name of media file (required) Provides the name of the file to be played.
height Number of pixels Specifies the height of media control console.
type A valid MIME type such as "audio/midi",
"audio/wav", and so on
Specifies the MIME type of the media file.
width Number of pixels Configures the width of media control console.
The Ta g



The tag is not part of the W3C XHTML 1.0 specification but it is included
here because it was often used in the past. The W3C recommends using the
tag instead. The tag can be used to place sound and other media in a Web
page. It is a self-contained tag and does not have a corresponding closing tag. Table A.34
shows tag attributes and their values.
Table A.34tag attributes
Attribute Value Usage
align "left", "right", "top",
"bottom"
Optional; aligns the media control console.
autostart "true", "false" Determines whether the media will play automati-
cally when the page is loaded. If omitted, media
may not automatically play.
autoplay "true", "false" Optional. Used by some media players, including
QuickTime. Determines if the media will play auto-
matically when the page is loaded. If omitted,
media may not automatically play.
codebase For QuickTime and Internet Explorer, this value
must be [http://www.apple.com/qtactivex/](http://www.apple.com/qtactivex/)
qtplugin.cab—the location of the most
recent version of the QuickTime player.
Specifies a relative path for the location of
the plug-in.