<param> Parameter (X)HTML Element Reference - (X)HTML webDev

HTML Tag: <param>

Parameter of an <object>.

  • <param> Required Attributes
  • name="" is used so that the element can be referenced and processed by the <object>.
  • <param> Optional Attributes
  • value="" can be used to specify the value of the parameter.
  • id="" can be used to uniquely identify the element.
  • type="" can be used to specify the content type.
  • valuetype="" can be used to specify the content type of the value attribute. Values can be valuetype="data", valuetype="ref" or valuetype="object".
  • >param<

    
    						<param name="string" type="MIME type"  value="value" valuetype=" { data | object | ref } ">
    					

    The <param> element is used in conjunction with the <applet> and <object> elements to provide parameters or variables to the parent element.

    A typical use for the <param> element is demonstrated in the example above, where it’s used to pass to the <object> information regarding an embedded movie clip’s quality and filename. When it’s used with an <applet>, the <param> might be used to pass variables to a function that the <applet> uses, for example, instructing the <applet> to draw five polygons on the page, and to make them purple:

    
    						<applet code="draw.class">
    							<param name="shape" value="triangle"/>
    							<param name="amount" value="5"/>
    							<param name="color" value="purple"/>
    						</applet>
    					

    <param> Parameter (X)HTML Element Reference - (X)HTML webDev