HTML <param> Tag

Beginner
5 min read
Updated: Oct 2026
4 examples
Live preview

Definition and Usage

The <param> element defined parameters for a parent <object> using name and value. Plugins (such as Flash) once read those settings.

Do not use it in new pages. Prefer <video>, <audio>, <iframe>, or <embed>. For <object>, set the resource with the data attribute.

Deprecated.

Avoid in every new project. Listed as a non-conforming feature. Browsers may still parse old markup, but plugin hosts are gone.

Void element.

<param> has no end tag and no visible content of its own. It only made sense inside <object>.

HTML Syntax

syntax.html
<param name="…" value="…">

Historical form only — start tag, no end tag, parent must be <object>. Prefer modern media:

prefer.html
<video controls width="320" src="/video/count.mp4">
  Your browser does not support video.
</video>

Attributes

Besides globals, legacy <param> used these. All are obsolete for authors.

AttributeDescriptionTry it
nameDeprecated context. Name of the parameter passed to the objectTry it
valueDeprecated context. Value of that parameterTry it
valuetypeDeprecated. How to interpret value: data (default), ref, or objectTry it
typeDeprecated. MIME type when valuetype="ref"Try it

Global Attributes

The <param> tag also supports the Global Attributes in HTML.

Live Preview

Compare obsolete object + param with a modern media element. Legacy plugins will not run; the modern path is what you should ship.

<param> alone never paints anything. Prefer native media elements.

Result

Flash content is no longer available.

Legacy object + param — plugins are gone; fallback text shows.

HTML Examples

Short study snippets. Use Try It Yourself for a live editor. Prefer Example 4 in real projects.

Example 1 — Legacy name and value (Study Only)

Old pages passed settings into an <object> with one or more <param> tags.

HTML
<object type="application/x-shockwave-flash" width="200" height="100">
  <param name="movie" value="demo.swf">
  <p>Flash content is no longer available.</p>
</object>
Try It Yourself

How It Works

  1. Open <object> for the plugin/resource host.
  2. Add <param> with name and value before other content.
  3. Provide fallback text for when the plugin cannot run.
  4. Do not ship this in new pages — recognize it only when reading old HTML.

Example 2 — Several Parameters (Study Only)

Plugins often needed more than one setting; each was a separate void <param>.

HTML
<object type="application/x-shockwave-flash" width="200" height="100">
  <param name="movie" value="demo.swf">
  <param name="quality" value="high">
  <param name="bgcolor" value="#ffffff">
  <p>Plugin not available.</p>
</object>
Try It Yourself

How It Works

  1. List each setting as its own <param>.
  2. Keep params first inside <object>, before flow content.
  3. Match names the plugin expected (historical; names were plugin-specific).
  4. Replace the whole pattern with <video> / <audio> / <iframe> today.

Example 3 — Object with Image Fallback (Study)

When the object cannot load, nested content (here an image) is shown. No param is required for a simple data image.

HTML
<object data="/images/javascript.png" type="image/png" width="128" height="128">
  <img src="/images/javascript.png" alt="JavaScript logo" width="128" height="128">
</object>
Try It Yourself

How It Works

  1. Set data on <object> for the resource URL (MDN’s preferred approach).
  2. Skip <param> when you are not talking to a plugin.
  3. Add fallback content (image or text) for when the object fails.
  4. Prefer <img> directly for ordinary pictures.

Example 4 — Modern Media (Preferred)

Use native media elements instead of object + param for playback.

HTML
<video controls width="320" poster="/images/javascript.png">
  <source src="/video/count.mp4" type="video/mp4">
  Your browser does not support video.
</video>
Try It Yourself

How It Works

  1. Use <video> (or <audio>) for media — no plugin params.
  2. Add <source> for formats and MIME types.
  3. Enable controls so users can play and pause.
  4. Keep a text fallback inside the element for unsupported browsers.

Edge Cases & Pitfalls

Most param confusion comes from treating parse support as permission to keep using it.

obsolete

Still parsed ≠ still useful

Engines may keep the element for old documents. Flash and similar plugin hosts are gone, so parameters have nothing reliable to configure.

parent

Only inside object

<param> is meaningless outside <object>. Place it before any flow content in that object.

void

No end tag, no children

It is a void element. Do not write </param> or nest content inside it.

names

Not URL query params

?key=value in a URL is unrelated. The HTML element was only for object/plugin settings.

aria

No ARIA role

There is no corresponding role, and no role is permitted on <param>.

Browser Support

The <param> element is legacy HTML kept for old pages. It is not a Node.js, Deno, or Bun API.

✓ Deprecated

<param>

Still recognized in major browsers for backward compatibility, but obsolete for authors. Prefer video, audio, iframe, embed, or object data.

— Do not use in new work
Google Chrome Legacy
Still parses
Mozilla Firefox Legacy
Still parses
Apple Safari Legacy
Still parses
Microsoft Edge Legacy
Still parses
Opera Legacy
Still parses
Samsung Internet Legacy
Still parses
Internet Explorer All
Supported (legacy)
<param> Obsolete (use media tags)

Bottom line: Recognize param in old object markup, then replace embeds with modern media elements. Never ship new pages that depend on it.

Key Takeaways

  • Status: <param> is deprecated — avoid in new HTML.
  • Role: void child of <object> that passed name/value to plugins.
  • Replace with: video, audio, iframe, embed, or object data.
  • Not query strings: unrelated to ?key=value in URLs.

One line: recognize <param> in old <object> markup; embed media with modern tags.

Default CSS Settings

<param> is not rendered. There is no meaningful user-agent box model for authors:

default.css
param {
  display: none;
}

Styling belongs on the visible host (object, or preferably video / iframe), not on param.

Frequently Asked Questions

The param element passed named parameters (name and value) to a parent object element, often for plugins such as Flash. It is a void element and is obsolete.
No. It is deprecated and listed as a non-conforming feature. Do not use it in new projects.
Only as a child of object, before any flow content inside that object. It has no meaning outside object.
Prefer video, audio, iframe, or embed for media and embeds. For object, set the resource with the data attribute instead of plugin parameters.
Browsers may still parse them for old pages, but plugins that consumed them are gone. Prefer modern media elements.
No. URL query strings (like ?id=1) are unrelated. The param element was only for object plugin settings.

Next: picture

Learn responsive images with the picture element and multiple sources.

picture tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

12 people found this page helpful