[HTML] [attributo] form

form (attributo base HTML) associa l’elemento HTML al/ai form, tramite identità nominale con l’attributo id di quest’ultimo, a prescindere dal fatto che l’elemento stesso sia annidato o meno nel tag HTML <form> (ma purché sia nello stesso documento).

tag

valore

<button>

form = "[testo]": stesso valore dell’attributo HTML id del tag HTML <form> al quale si riferisce l’elemento HTML cui acceda. Nel caso in cui l’elemento sia associato a più form, gli id dell’attributo vanno separati da uno spazio (ad es., “id1 id2”).

<fieldset>

Come sopra.

<input>

Come sopra.

<keygen>

Come sopra.

<meter>

Come sopra.

<object>

Come sopra.

<output>

Come sopra.

<progress>

Come sopra.

<select>

Come sopra.

<textarea>

Come sopra.

Esempio

<form id="nome_form">
  Email: <input type="email">
</form>
<button type="submit" form="nome_form">ok</button>

Email:

Contenuti correlati

  • CSS
  • HTML
  • JavaScript
  • jQuery
  • PHP
  • SQL
  • WORDPRESS

Fonti esterne

attributi base html, html

Related Articles

0 Comment

Rispondi