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 |
---|---|
Come sopra. |
|
Come sopra. |
|
Come sopra. |
|
Come sopra. |
|
Come sopra. |
|
Come sopra. |
|
Come sopra. |
|
Come sopra. |
|
Come sopra. |
Esempio
<form id="nome_form"> Email: <input type="email"> </form> <button type="submit" form="nome_form">ok</button>
0 Comment