HTML <object> แอตทริบิวต์รูปแบบ
ตัวอย่าง
<object> องค์ประกอบที่อยู่นอกแบบฟอร์ม (แต่ยังคงเป็นส่วนหนึ่งของแบบฟอร์ม):
<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>
ความหมายและการใช้งาน
แอตทริบิวต์form
ระบุรูปแบบที่เป็นของวัตถุ
ค่าของแอตทริบิวต์นี้ต้องเท่ากับid
แอตทริบิวต์ของ
<form>
องค์ประกอบในเอกสารเดียวกัน
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
form | Not supported | Not supported | Not supported | Not supported | Not supported |
ไวยากรณ์
<object form="form_id">
ค่าแอตทริบิวต์
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. |
❮ แท็ก HTML <object>