Understanding the HTML `` Element for Customizing Media Players
Learn how to use the HTML `` element to customize the behavior and appearance of media players (like Flash, QuickTime) embedded in web pages. This tutorial explains ``'s attributes (`name`, `value`), its usage within the `
Understanding the HTML `` Element for Media Players
What is the `` Element?
The HTML `` element is used to define parameters for media elements such as `
Using the `` Element
The `` element is an empty element (it has no closing tag) and requires both a `name` and a `value` attribute. The `name` attribute specifies the name of the parameter, and the `value` attribute specifies its value.
Example: Using the `` Element
<object data="movie.swf" width="300" height="150">
<param name="movie" value="movie.swf">
<param name="quality" value="high">
</object>
In this example, the `movie` and `quality` parameters are set for the embedded SWF (Flash) file. The browser uses these parameters to configure the media player before it starts playing.
Browser Support for ``
The `` element is supported in all major browsers. However, remember that the functionality and support for parameters will depend on the technology being used within the object tag.
Browser | Support |
---|---|
Chrome | Yes |
Edge | Yes |
Firefox | Yes |
Opera | Yes |
Safari | Yes |
Attributes of the `` Element
Attribute | Value | Description |
---|---|---|
name |
Name | Specifies the parameter's name. |
value |
Value | Specifies the parameter's value. |
The `` element also supports standard HTML global attributes. It does not support any event attributes.