Home > Article > Web Front-end > How to add parameters to objects in HTML?
Use the tag to add parameters to the object. The HTML tag also supports the following additional attributes -
Attribute | Value | Description |
---|---|---|
Name | Parameter type | Define the unique name of the parameter.|
Type | MIME Type
|
Internet media for specified parameters type. |
Value | Value p> | Specify the value of the parameter. |
Value type | Data Reference Object |
Specifies the MIME type of the value. |
You can try running the following code to implement the 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>
The above is the detailed content of How to add parameters to objects in HTML?. For more information, please follow other related articles on the PHP Chinese website!