HTML <オブジェクト>フォーム属性

❮HTML<object>タグ

フォームの外側にある<object>要素(ただし、フォームの一部):

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

定義と使用法

属性はform、オブジェクトが属するフォームを指定します。

この属性の値は 、同じドキュメント内の要素のid属性と同じである必要があります。 <form>


ブラウザのサポート

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

構文

<object form="form_id">

属性値

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