` tags. The ` ` tag has fallen out of favor because of the improved features and attributes that are now available in the more modern audio and video tags.
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>
Copy Code
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.
Previous
Next