Formularz HTML <object> Atrybut
Przykład
Element <object> znajdujący się poza formularzem (ale nadal częścią formularza):
<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>
Definicja i użycie
Atrybut określa formę, do form
której należy obiekt.
Wartość tego atrybutu musi być równa id
atrybutowi
<form>
elementu w tym samym dokumencie.
Obsługa przeglądarki
Attribute | |||||
---|---|---|---|---|---|
form | Not supported | Not supported | Not supported | Not supported | Not supported |
Składnia
<object form="form_id">
Wartości atrybutów
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. |
❮ Znacznik HTML <object>