How to add a parameter for an object in HTML?

HTMLFront End TechnologyWeb Development

Use the <param> tag to add a parameter for an object. 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.

Example

You can try to run the following code to implement <param> tag in HTML −

<!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>
raja
Published on 13-Mar-2018 08:21:47
Advertisements