HTML - <param> Tag


Advertisements


Description

The HTML <param> tag is used for passing parameters to an embedded object using <object> tag.

Example

You can specify some parameters related to the document with the <param> tag. Here is an example to embed a wav file −

<!DOCTYPE html>
<html>

   <head>
      <title>HTML param Tag</title>
   </head>

   <body>
      <object title = "Test Object." classid = "java.class">
         <param name = "audio" value = "music.wav" />
         <param name = "width" value = "600" />
         <param name = "height" value = "400" />
      </object>
   </body>

</html>

This will produce the following result −

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Specific Attributes

The HTML <param> tag also supports the following additional attributes −

Attribute Value Description
name parameter type Defines a unique name for the parameter.
type MIME type Specifies the internet media type for the parameter.
value value Specifies the value of the parameter.
valuetype data
ref
object
Specifies the MIME type of the value.

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes

html_tags_reference.htm

Advertisements