📜  HTML 对象标签

📅  最后修改于: 2021-11-08 06:13:21             🧑  作者: Mango

标签是一个 HTML 标签,用于在网页中显示音频、视频、图像、PDF 和 Flash 等多媒体。它还可以用于在 HTML 页面内显示另一个网页。
标签也与这个标签一起使用来定义各种参数。在 标签内写入的任何文本都被视为在浏览器不支持指定数据时出现的替代文本。
此标签支持 HTML 的所有全局和事件属性。
例子:

HTML

 

 
    
        

HTML Object Tag

                 GeeksforGeeks                         


输出:

标签具有以下属性:

Attribute Value Description
data URL It specifies the URL of data in the object.
type media_type It specifies the media type of data specified in the data attribute.
typemustmatch boolean It indicates that the resource should be embedded only if the value of the type attribute matches with the type of the resource provided on the data attribute.
align left, right, top, bottom It defines the alignment of the objects.
border pixels It specifies the border around the object.
height pixels It specifies the height of the object.
hspace pixels It specifies the whitespace on the left and right side of the object.
vspace pixels It specifies the whitespace on the top and bottom of the object.
height pixels It specifies the height of the object.
width pixels It specifies the width of the object.
name name It specifies the name for an object.
form form_id It specifies the form id to which the object element belongs to.

支持的浏览器:

  • 谷歌浏览器
  • IE浏览器
  • 火狐
  • 歌剧
  • 苹果浏览器