👀 Live Preview
Structure of param elements nested inside object:
<param name="autoplay" value="true">
<param name="loop" value="false">
<p>Fallback content</p>
</object>

In the vast landscape of HTML elements, the <param> tag plays a unique role, serving a specific purpose within certain contexts. This guide will delve into the intricacies of the HTML <param> tag, providing insights into its usage and implementation.
Object settings.
Inside object.
Key pairs.
autoplay, loop.
Legacy embeds.
audio/video.
<param> Tag?The <param> tag is an HTML element commonly used within the <object> element. It allows you to define parameters or attributes for plugins embedded on a web page. While its usage is specific to certain scenarios, understanding how to implement it correctly is crucial for reading legacy HTML and seamless integration.
param is a void element with no rendered output. It only configures the parent object embed. For everyday media today, prefer audio, video, and img instead of object + param.
To utilize the <param> tag, place it within the opening and closing <object> tags, specifying the necessary attributes:
<object data="resource.swf" type="application/x-shockwave-flash">
<param name="parameter_name" value="parameter_value">
<!-- Fallback content for non-supporting browsers -->
</object>param only inside object (or historical applet, which is obsolete).param is void — use <param ...> without inner content.param elements before fallback HTML inside object.name and value attributes together.| Topic | Code Snippet | Notes |
|---|---|---|
| Basic parameter | <param name="autoplay" value="true"> | Inside object |
| Multiple params | Several param siblings | One setting each |
| Parent element | <object data="..." type="..."> | Required container |
| Fallback content | HTML after all param tags | When embed fails |
| Modern media | <audio> / <video> | Prefer over object+param |
| Legacy plugins | Flash, Java applets | No longer supported |
<param> + <object> vs <audio> / <video>| Approach | When it was used | Use today? |
|---|---|---|
object + param | Plugin embeds (Flash, applets) | Legacy HTML only |
audio / video | Native HTML5 media playback | Yes — standard |
img / picture | Images and responsive art direction | Yes — standard |
iframe | Embedded documents and apps | Yes — when needed |
The <param> tag typically employs two essential attributes: name and value. The name attribute specifies the name of the parameter, while the value attribute sets its corresponding value.
<object data="player.swf" type="application/x-shockwave-flash">
<param name="autoplay" value="true">
<!-- Fallback content -->
</object>name RequiredIdentifies the parameter key understood by the embedded resource or plugin.
name="autoplay"value RequiredSets the value assigned to the named parameter.
value="true"type OptionalSpecifies the MIME type of the value when the parameter value is a resource URL.
type="image/png"valuetype OptionalIndicates how to interpret value: data, ref (URL), or object.
valuetype="data"See how param configures embedded object resources and when modern HTML replaces this pattern.
Structure of param elements nested inside object:
Historically, <param> configured plugin-based embeds inside object. These patterns help you read older pages even though modern sites use native HTML5 elements.
The <param> tag is commonly used when embedding media players, allowing you to set specific parameters such as autoplay, loop, or volume:
<object data="video_player.swf" type="application/x-shockwave-flash">
<param name="autoplay" value="true">
<param name="loop" value="false">
<p>Your browser does not support Flash content.</p>
</object><video controls> with autoplay and loop attributes for media today.When integrating third-party plugins or applets, the <param> tag facilitates the configuration of various parameters required by the plugin:
<object data="plugin_applet.jar" type="application/x-java-applet">
<param name="param1" value="value1">
<param name="param2" value="value2">
<p>Your browser does not support Java applets.</p>
</object>A minimal param pair inside object with fallback text:
<object data="/audio/count.mp3" type="audio/mpeg" width="320" height="54">
<param name="autoplay" value="true">
<p>Your browser does not support the audio.</p>
</object>object after param tags when the embed cannot load.audio/video with controls is the accessible path.autoplay params can surprise screen reader users; let visitors start media intentionally.An object points to an external resource with data and type.
Each param supplies a name/value pair read by the plugin or embed handler.
If the resource cannot render, nested fallback HTML inside object is displayed.
Parameters tailor plugin behavior when supported; fallback keeps the page usable when not.
Understanding the compatibility of the <param> tag across different browsers is essential for delivering a consistent user experience. The param element itself is supported everywhere; legacy plugin MIME types are not.
All browsers parse <param> inside object. Flash and Java applet plugins are no longer available in modern browsers.
<param> elementNote: Flash (application/x-shockwave-flash) and Java applets have 0% support in modern browsers. Use audio, video, and JavaScript instead.
While the <param> tag might not be an everyday HTML element, it serves a crucial role in specific scenarios, particularly when configuring parameters for embedded plugins or applets. Mastering its implementation ensures you can read legacy HTML and provide proper fallback content when older embed patterns no longer work.
<param> tag within the context of the <object> elementname and value attributesobjectaudio, video, and img for new media embedsparam outside objectobject without fallback contentparam settings work the same across all plugin typesaudio/mp3 instead of audio/mpeg)<param>Bookmark these when you encounter embedded objects in HTML.
Parent required.
PlacementKey pairs.
Attributesautoplay, loop.
Use casesInside object.
ResilienceModern path.
AlternativeAll browsers.
Compatibilityobject element, such as autoplay or loop settings passed to a plugin.<object>, before any fallback HTML content. It is not a standalone visible element.name (parameter key) and value (parameter value).<video> and <audio> directly. param is mainly for legacy plugin embeds and reading older HTML.param element is supported in all browsers. Legacy plugin types like Flash and Java applets are no longer supported.Practice name and value pairs inside object in the Try It editor.
6 people found this page helpful