HTML valuetype Attribute

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

Definition and Usage

valuetype belonged on <param> (a child of <object>). It told the plugin how to read the value: as a string (data), a URI (ref), or another object’s id (object).

MDN marks <param> deprecated. The HTML Standard lists valuetype as a non-conforming feature. Learn it only to recognize old plugin markup — not for new pages. Do not confuse it with everyday form value.

Deprecated / obsolete.

Do not use valuetype (or new <param> stacks) in modern HTML. Prefer purpose-built embeds.

HTML Syntax

syntax.html
<!-- obsolete --> <param name="…" value="…" valuetype=" data | ref | object">

Modern form: omit valuetype and avoid <param>. Use <object data="…" type="…"> only when needed, or switch to <video> / <iframe> / <embed>.

Attribute Values

Historical keywords (study only):

ValueDescriptionTry it
dataDefault — pass value as a stringTry it
refvalue is a URI; type could hint the MIMETry it
objectvalue is the id of another <object>Try it
(omit)Correct today — do not add this attributeTry it
Prefer other embedsvideo, iframe, embed when they fitTry it

Live Preview

Flip between obsolete valuetype keywords and a modern snippet without param.

markup style

Study only — valuetype is non-conforming; prefer modern embeds.

Snippet
<!-- obsolete — do not use -->
<object width="400" height="225">
  <param name="autoplay" value="true" valuetype="data">
  Fallback content
</object>

valuetype="data" — treat value as a plain string (legacy).

HTML Examples

Study snippets. Use Try It Yourself for a live editor. Prefer modern patterns in production.

Example 1 — Recognize Obsolete Markup

Old plugin tutorials used valuetype on <param>. Do not copy this into new work.

HTML
<!-- Obsolete — for study only -->
<object width="400" height="225">
  <param name="movie" value="clip.swf" valuetype="ref" type="application/x-shockwave-flash">
  <param name="quality" value="high" valuetype="data">
  <p>Plugin content is unavailable.
    <a href="/video/count.mp4">Open a modern video instead</a>.
  </p>
</object>
Try It Yourself

How It Works

  1. valuetype="ref" — value was treated as a URI to a resource.
  2. type with ref — optional MIME hint for that URI (legacy pairing).
  3. valuetype="data" — pass a plain string setting to the plugin.
  4. Action — delete valuetype and replace the plugin stack when you find it.

Example 2 — Modern <object> (No valuetype)

If you still need object, use data and type with fallback — no param / valuetype.

HTML
<object
  data="/video/count.mp4"
  type="video/mp4"
  width="400"
  height="225">
  <p>
    Cannot display the media.
    <a href="/video/count.mp4">Open the file</a>.
  </p>
</object>
Try It Yourself

How It Works

  1. data — URL of the resource.
  2. type — MIME hint (still valid on object).
  3. Children — fallback if the resource cannot be shown.
  4. No valuetype — that attribute is non-conforming and unnecessary here.

Example 3 — Prefer Purpose-Built Elements

For video, use <video> instead of plugin parameters.

HTML
<video width="400" height="225" controls>
  <source src="/video/count.mp4" type="video/mp4">
  Your browser does not support HTML video.
</video>
Try It Yourself

How It Works

  1. Match the media — video → video, pages → iframe, files → embed when appropriate.
  2. type on <source> — MIME hint for format choice.
  3. No plugin params — settings belong on the element or in script/CSS.
  4. Keep studying object only when a true object embed is required.

Edge Cases & Pitfalls

Most confusion is mixing valuetype with form value, or treating plugin params as current practice.

obsolete

Authors must not use it

HTML lists valuetype as non-conforming. MDN deprecates <param>. Remove both from new markup.

vs value

Not form value

value on inputs/options is everyday and valid. valuetype is a separate legacy param flag.

type

type with ref only (legacy)

On param, type was paired with valuetype="ref". That pairing is not a modern pattern.

plugins

Flash / ActiveX era

These attributes existed for plugin hosts. Browsers no longer run that model — migrate content instead of “fixing” valuetype.

migrate

Search and replace

If legacy HTML still has valuetype, drop the attribute and re-embed with modern elements.

Browser Support

valuetype is an obsolete HTML attribute on <param>. It is non-conforming for authors and tied to deprecated plugin-style markup.

✓ Obsolete · Do not use

valuetype

Do not rely on valuetype in new pages. Engines may ignore it; the living standard treats it as non-conforming. Prefer video, iframe, embed, or a simple object with data/type.

0% Author use (do not)
Google Chrome Legacy / ignore
Do not use
Mozilla Firefox Legacy / ignore
Do not use
Apple Safari Legacy / ignore
Do not use
Microsoft Edge Legacy / ignore
Do not use
Opera Legacy / ignore
Do not use
Samsung Internet Legacy / ignore
Do not use
Internet Explorer Historical
Do not use
valuetype Obsolete

Bottom line: Study only. Delete valuetype from legacy pages; replace param/object plugin stacks with modern embeds.

Key Takeaways

  • Status: obsolete — authors must not use it.
  • Old idea: classify param’s value as data, ref, or object.
  • Keep: form value; object data + type when needed.
  • Prefer: video, iframe, embed over param stacks.

One line: valuetype classified obsolete <param> values — delete it and use modern embeds instead of plugin parameters.

Frequently Asked Questions

An attribute on <param> that described how to interpret the value attribute: as a data string (data), a URI (ref), or another object’s id (object). Both param and valuetype are obsolete for authors.
No. MDN marks <param> as deprecated, and the HTML Standard lists valuetype as a non-conforming feature. Do not use it in new pages.
Historically: data (default — pass value as a string), ref (value is a URI), and object (value is the id of another <object> in the same document). type on param was only used when valuetype was ref.
No. value holds the parameter payload. valuetype only classified how that payload should be read. Everyday form controls use value alone — never valuetype.
Avoid plugin-style <object>/<param> stacks. Prefer purpose-built elements (video, img, iframe, embed) or modern APIs. If you still need <object>, use data and type with trusted URLs and fallback content — omit valuetype.
Deprecated / obsolete / non-conforming — not experimental. Study it only to recognize legacy markup.

Next: version

Obsolete document version attribute — another legacy footnote.

version 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.

8 people found this page helpful