How to add parameters to objects in HTML?

王林
Release: 2023-08-26 10:01:13
forward
1001 people have browsed it

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>
Copy after login

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!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!