Attribut de formulaire HTML <object>

❮ Balise HTML <object>

Exemple

Un élément <object> situé en dehors d'un formulaire (mais faisant toujours partie du formulaire) :

<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>

Définition et utilisation

L' formattribut spécifie la forme à laquelle appartient l'objet.

La valeur de cet attribut doit être égale à l' idattribut d'un <form> élément du même document.


Prise en charge du navigateur

Attribute
form Not supported Not supported Not supported Not supported Not supported

Syntaxe

<object form="form_id">

Valeurs d'attribut

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.

❮ Balise HTML <object>