⚠️ Obsolete Element
The <param> tag is obsolete in HTML5. It was used with Java applets and Flash plugins, which are no longer supported in modern browsers. Use modern alternatives like JavaScript APIs, Web Components, or iframe for embedding content.
The HTML param tag passes parameters to embedded objects inside an <object> element. It is a void element (self-closing) that uses name and value attributes. Note: This tag is completely obsolete in modern HTML5.
Structure and Attributes of the Param Tag
The <param> tag must reside directly inside an <object> element, declared before any fallback content. It strictly requires both name and value attributes to function in legacy systems:
- name: Specifies the name of the parameter.
- value: Specifies the value of the parameter being configured.
Why is the Param Tag Obsolete?
Historical use cases included initializing Java applets, Flash plugins, and ActiveX controls. The param tag is deprecated today simply because these plugin-based technologies represent security risks and are no longer supported natively by modern web browsers like Chrome, Firefox, Safari, or Edge.
Modern Alternatives to Param
Instead of using <param>, developers should use:
- JavaScript APIs: For dynamic and interactive content.
- Web Components: For building encapsulated, reusable UI elements.
- Iframe: For securely embedding external content.
- Native Media Elements: Such as
<video>and<audio>tags for media playback.
