Home  >  Article  >  Web Front-end  >  How to add parameters to objects in HTML?

How to add parameters to objects in HTML?

王林
王林forward
2023-08-26 10:01:131020browse

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 -

Define the unique name of the parameter.

Value

Attribute

Value

Description

Name

Parameter type

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.

Example

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete