HTML-<Objekt > -Formularattribut
Beispiel
Ein <object>-Element, das sich außerhalb eines Formulars befindet (aber immer noch Teil des Formulars):
<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>
Definition und Verwendung
Das form
Attribut gibt das Formular an, zu dem das Objekt gehört.
Der Wert dieses Attributs muss gleich dem id
Attribut eines
<form>
Elements im selben Dokument sein.
Browser-Unterstützung
Attribute | |||||
---|---|---|---|---|---|
form | Not supported | Not supported | Not supported | Not supported | Not supported |
Syntax
<object form="form_id">
Attributwerte
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>-Tag