HTML5 中的
句法:
最初
可以在此元素中传递的属性:
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 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 white space on the left and right sides of the object. |
vspace | pixels | It specifies the white space on the top and bottom of the object. |
width | pixels | It specifies the width of the object. |
name | name | It specifies the name of an object. |
form | form_id | It specifies the form id to which the object element belongs to. |
示例:以下示例代码反对链接图像、视频和某些其他网页的任何 HTML 链接:
HTML
Example of an object element in HTML5