Thuộc tính biểu mẫu HTML <object>

❮ Thẻ HTML <object>

Thí dụ

Phần tử <object> nằm bên ngoài biểu mẫu (nhưng vẫn là một phần của biểu mẫu):

<form action="/action_page.php" id="form1">
  First name: <input type="text" name="fname"><br>
  <input type="submit" value="Submit">
</form>

<object data="pic_trulli.jpg" width="300" height="200"></object>

Định nghĩa và Cách sử dụng

Thuộc formtính chỉ định hình thức đối tượng thuộc về.

Giá trị của thuộc tính này phải bằng idthuộc tính của một <form> phần tử trong cùng một tài liệu.


Hỗ trợ trình duyệt

Attribute
form Not supported Not supported Not supported Not supported Not supported

Cú pháp

<object form="form_id">

Giá trị thuộc tính

Value Description
form_id Specifies the <form> element the <object> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document.

❮ Thẻ HTML <object>