Atribut formulir <objek> HTML
Contoh
Elemen <object> yang terletak di luar formulir (tetapi masih merupakan bagian dari formulir):
<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>
Definisi dan Penggunaan
Atribut form
menentukan bentuk objek milik.
Nilai atribut ini harus sama dengan id
atribut
<form>
elemen dalam dokumen yang sama.
Dukungan Peramban
Attribute | |||||
---|---|---|---|---|---|
form | Not supported | Not supported | Not supported | Not supported | Not supported |
Sintaksis
<object form="form_id">
Nilai Atribut
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. |
tag <objek> HTML