HTML <input> formu Özniteliği

❮ HTML <input> etiketi

Örnek

HTML formunun dışında (ancak yine de formun bir parçası) bulunan bir giriş alanı:

<form action="/action_page.php" id="form1">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname"><br><br>
  <input type="submit" value="Submit">
</form>

<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname" form="form1">

Tanım ve Kullanım

Nitelik , öğenin ait olduğu formformu belirtir . <input>


Tarayıcı Desteği

Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.

Attribute
form Yes Yes Yes 5.1 10.6

Sözdizimi

<input form="form_id">

Özellik Değerleri

Value Description
form_id Specifies the form element the <input> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document.

❮ HTML <input> etiketi