Formularz HTML <object> Atrybut

❮ Znacznik HTML <object>

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 formktórej należy obiekt.

Wartość tego atrybutu musi być równa idatrybutowi <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>