valuetype (HTML attribute)

Depr. Version
No HTML 3.2
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2+
Full Full Full Full Full


valuetype=" { data | object | ref } "


The valuetype provides a mechanism for defining exactly what type of data is being passed to the parent object. If a valuetype isn’t specified, the browser assumes the default value of "data". You only really need to bring the valuetype attribute into play if the content inside the value is a URL which points to a file that contains the necessary information. In the example above, the reference is to a text file poly.txt which would, presumably, contain the set of rules or coordinates required to draw a polygonal shape, for which you’d specify a valuetype of "ref". If "object" is specified as the valuetype, the value attribute should correlate to another object on the page, which is referenced by that object’s id:

<param name="handler" value="mplayer" valuetype="object"/>
<object id="mplayer">


The valuetype of the "shape" parameter here is "ref", as the value is a reference to a URL:

<param name="shape" value="poly.txt" valuetype="ref"/>


"data", "ref", and "object" are the only possible values for valuetype.

User-contributed notes

There are no comments yet.

Related Products