📜  HTML对象标记

📅  最后修改于: 2020-11-03 03:27:51             🧑  作者: Mango

的HTML标签

的HTML标签用于在网页上嵌入多媒体文件。的标签可以包含多媒体文件,例如视频,音频,图像,PDF,Java Applet或页面上的其他页面。

的HTML标签也用于标记,用于将参数传递给随附的插件标签。

如果您在标签,则只有在浏览器不支持标签。

句法

     

以下是有关HTML的一些规范标签

Display Inline
Start tag/End tag Both Start and End tag
Usage Embed external resource

嵌入视频:




Obejct Tag


 

Example of Object tag

输出:

嵌入gif图片:




Obejct Tag


 

Example of Object tag

Sorry!,Your browser does not support

输出:

属性:

特定于标签的属性:

Attribute Value Description
data URL It specifies the address of the resource.
type content_type It determines the content type of the resource specified by data.
archive URL It specifies the space-separated list of URL’s for archives of resources for the object. (Not supported in HTML5).
border pixels It sets the width of the border around the (Not supported in HTML5).
classid URL It specifies the URL for the object implementation. (Not supported in HTML5).
codebase URL It specifies the base path where to find the code for the object. (Not supported in HTML5).
form form_idIt specifies the form element that the object element is associated with.
height pixels It defines the height of the object.
width pixels It determines the width of the object.
typemustmatch boolean It specifies that resource should be embedded if type attribute matches with the actual content type of the resources provided on the data attribute.
name name It defines the name for the object.

全局属性:

标签支持HTML中的全局属性

事件属性:

标签支持HTML中的事件属性。

支持的浏览器

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes