There is more to making a modern website than merely writing and taking pictures. Developers often need to include complicated multimedia or external apps. The HTML param tag is useful here. This article explains the syntax and features and provides real-world examples to help you learn how to use it.
What is the HTML param Tag Value?
The param tag in HTML is an empty tag. This means it does not have a closing tag. It is used to define parameters for an <object> element.
The object tag is like a box that holds an outside resource, and the param tag is like a list of settings or instructions for that resource.
When a browser encounters an object, it needs to know how to initialise the plugin. For instance, if you are embedding a media file, should it start automatically? What should the background colour of the player be?
These specific configurations are handled by the HTML param tag usage. Because it is an empty element, it only contains attributes that define the “name” and the “value” of the parameter.
In simple terms, the param tag defines parameters for an <object> element and is used to pass configuration data to embedded content.
Read More:
- HTML Br Tag
- HTML Button Tag
- HTML Canvas Tag
- HTML Caption Tag
- HTML Center Tag
- HTML Cite Tag
- HTML Code Tag
- HTML Col Tag
- HTML Dt Tag
- HTML Colgroup Tag
- HTML Dl Tag – Definition, Meaning, Examples & Usage Guide
- HTML Div Tag – Meaning, Attributes, Uses & Examples
- HTML Dir Tag
- HTML Dialog Tag
- HTML Dfn Tag
- HTML Details Tag
- HTML Del Tag
- HTML DD Tag
- HTML Datalist Tag
- HTML Data Tag
HTML param Tag Syntax
Understanding the syntax is straightforward once you recognise that it must always reside inside an object element. Since it is a void element, you do not use </param>.
Here is the basic structure:
HTML
<object data=“resource_url”>
<param name=“parameter_name” value=“parameter_value”>
</object>
In this structure, the name attribute identifies what setting you are changing, and the value attribute specifies what that setting should be.
For example, if you wanted to set a “quality” parameter to “high”, the param tag value would reflect that specific pair.
In XHTML, the <param> tag must be self-closed like <param />, whereas in HTML, no closing tag is required.
HTML param Tag Attributes
To use this tag effectively, you need to be familiar with its primary attributes. While global HTML attributes can be applied, the two core attributes are what make the tag functional.
- name: This specifies the name of the parameter. This is not a random name; it must be a name that the embedded object or plugin understands (e.g., “autoplay”, “controller”, or “src”).
- value: This specifies the value associated with the name attribute. It defines the specific state or data point for that parameter.
| Attribute | Description | Required |
| name | Defines a unique name for the parameter that the plugin recognises. | Yes |
| value | Assigns a specific value to the named parameter. | Yes |
| id | Provides a unique identifier for the element. | No |
| class | Assigns a class name for CSS styling (rarely used for param). | No |
HTML param Tag in Object Element
The relationship between these two tags is strictly hierarchical. The <param> element acts as a child of the <object> element.
You can include multiple param tags within a single object to configure various aspects of the plugin simultaneously.
When the browser loads the object, it scans all the nested param tags and passes that information to the external software.
If the browser does not support the object tag or the specific plugin, it will ignore the param tags entirely and usually display any “fallback” text you have placed inside the object.
By default, the <param> element has display: none, so it does not appear on the page.
HTML param Tag Example
Let’s look at a concrete example to see how this looks in a real coding scenario. Imagine you are embedding a legacy Flash file (.swf) or a specific media plugin that requires a source and an autoplay setting.
HTML
<object data=“movie_player.swf” width=“400” height=“300”>
<param name=“autoplay” value=“true”>
<param name=“allowFullScreen” value=“true”>
<param name=“quality” value=“high”>
Your browser does not support this media player.
</object>
In this HTML param tag example in HTML, the object provides the dimensions and the file path, while the param tags tell the player to start immediately and allow the user to go full screen.
Read More:
- HTML Body Tag
- HTML Blockquote Tag
- HTML Audio Tag
- HTML Bdi Tag
- HTML Bdo Tag
- HTML Big Tag
- HTML Basefont Tag
- HTML Acronym Tag
- HTML Base Tag
- HTML Aside Tag
- HTML Address Tag: Syntax, Components, Attributes, And Examples
- HTML Applet Tag: Is Applet Tag No Longer Supported On HTML5
- HTML Article Tag: Definition, Syntax, And Examples
- HTML Area Tag: Syntax, Example, And Attributes
- HTML Abbr Tag: Syntax, Attribute, And Examples
- HTML Comment Tag: How To Use HTML Comments?
- HTML A Tag
- The Best Guides To HTML Tags In Web Development
- A Href Tag In HTML: Everything You Need To Know About Them!
- A HTML Tag: Example, Tag List, Tag Within Page, Table Tag
Why Use the HTML param Tag?
You might wonder why we don’t just use attributes directly on the object tag. The reason lies in flexibility. Different plugins require different settings.
Instead of creating a thousand different attributes for the object tag to cover every possible plugin in existence, the W3C created the param tag as a universal way to pass “custom” data.
It allows the object tag to remain generic while giving developers control over the fine details of the content being loaded. This is particularly useful for:
- Customising media players: Adjusting volume levels or skin colours.
- Data passing: Sending specific variables to a Java applet.
- Behavioural control: Toggling features like looping or hidden controls.
HTML param Tag Use Cases and Limitations
The param tag was a common element in web development for a long time, but its use has evolved.
Many technologies, such as Flash players and Java applets, were used in the past but are now deprecated and no longer supported in modern browsers.
There is less need for the param tag for standard media now that new web standards have migrated toward the video and audio tags.
But it is still important when working with:
- Legacy Systems: Keeping legacy business apps that need certain plugins to work.
- Specialised Plugins: Using browser extensions or interactive tools that are only available in certain areas and haven’t yet been adapted to work with native HTML5 elements.
- ActiveX Controls: They were used in older Windows-based environments but are now obsolete and unsupported in modern web browsers.
It is important to remember that the param tag does not work outside of an object tag. If you place it inside a div or a p tag, the browser will simply ignore it.
Also Read:
- Everything You Should Know About The Audio Tag HTML And JavaScript
- Basic HTML Tags: The Best Guide To HTML Tags
- Body HTML: Essential Tags And Attributes Explained
- Types Of Tags In Html
- What Is Div Tag In Html
- HTML Anchor Tag – A Complete Guide
- HTML IMG Tag – What It Is And How To Use It
- What Is HTML Link Tag – A Complete Guide
- HTML Marquee Tag
- Html Table Tag – Example, Attributes, Border
- BR Tag Html – Confusion On Uses Of Br /> Or Br?
- Html Basic Tag – List, Examples, Types
- Html Video Tags – Autoplay, YT Video Tags
- HTML Checkbox Tag: How To Use For Beginners?
- Code Tag In Html: Inline Code Elements
- HTML Dl Tag – HTML Description List
- HTML Ol Tag: Ordered Lists In HTML [2025]
- HTML Em Tag: Meaning, Usage, And Examples In Web Design
- HTML Font Tag: Meaning, Attributes, And Usage In Web Design
- HTML Fieldset Tag: Definition, Usage, And Examples In Forms
HTML param Tag Best Practices
Here are some things to remember while using the param tag to make sure your code is tidy and works:
- The Order Matters: Put your param tags at the top of the object element, before any text intended as a backup.
- Case Sensitivity: HTML is usually not case-sensitive, but the values you send through the param tag value attribute may be case-sensitive depending on the plugin that gets them.
- Validation: Always make sure that the name you are using is supported by the object or plugin you are embedding.
- Content to fall back on: Always put descriptive language inside the object tag (after your params) so that people who can’t load the plugin can understand what it does.
How the HTML param Tag Works in Browsers?
The browser engine makes a Document Object Model (DOM) when a webpage loads. The browser doesn’t show a box or button for the param tag.
It keeps these name-value pairs in memory instead. Once the object’s “data” source begins to initialise, the browser hands over this stored list of parameters.
If you have a param tag example with five separate parameters, the browser makes sure that the external program gets all five before it starts running. This prevents the plugin from crashing when it doesn’t have the correct configuration data.
Modern browsers can still parse the <param> tag, but its practical use is limited because most plugins it was designed for (such as Flash and Java applets) are no longer supported.
If the browser doesn’t support the embedded object, it will ignore the param tags and show other material instead.
Also Read:
- HTML Form Tag: Definition, Attributes, And Usage In Web Development
- HTML Figure Tag
- HTML Footer Tag: Definition, Usage, And Importance In Web Pages
- HTML Embed Tag: Definition, Usage, And Examples In Web Development
- HTML Figcaption Tag
- HTML Frame Tag: Definition, Usage, And Why It’s Deprecated
- HTML Frameset Tag: Definition, Usage, And Why It’s Deprecated
- HTML H1 To H6 Tag: Definition, Usage, And Importance In SEO
- HTML Head Tag
- HTML Header Tag
- HTML Hr Tag
- HTML Html Tag
- HTML I Tag
- HTML Iframe Tag
- HTML Input Tag
- HTML Ins Tag
- HTML Kbd Tag
- HTML Noscript Tag
- HTML Label Tag Guide
- Using HTML Hgroup Tag For Headings
- HTML Legend Tag: A Guide
- HTML Li Tag: A Web Development Guide
- HTML Link Tag
- HTML Main Tag: Usage And Best Practices
- HTML Map Tag: Interactive Image Guide
- HTML Mark Tag: Highlighting Text
- HTML Nav Tag
- HTML Menu Tag
- HTML Meter Tag
- HTML Meta Tag
- HTML Object Tag
- HTML Noframes Tag
HTML param Tag Summary
The param tag is mainly used in legacy systems that need to connect HTML to external plugins. By knowing how to use the param tag and the object element appropriately, you can make sure that your embedded information is set up correctly and works well for users.
If you work on older sites or with certain interactive items, knowing how to change the param tag value is a very useful ability for web developers.
FAQs
Where should I place the param tag?
You must always put the param tag inside a container. It should come before any fallback content so the browser can process the settings correctly.
Does the param tag require a closing tag?
No, the param tag is an empty or "void" element. It simply uses attributes; it doesn't need a closing tag.
Can I use multiple param tags in one object?
Absolutely. You can use as many tags as needed to define different settings. Each param tag example usually shows several params used together to control things like volume, autoplay, and file paths.
