<form action="destination.html" method="post"></form>| Aperçu | Type | Code |
| Champ caché |
<input type="hidden" name="champ0" value="ici" />
|
|
| Champ de texte |
<input type="text" name="champ1" size="15" maxlength="10" value="écrit ici" />
|
|
| Champ de mot de passe |
<input type="password" name="champ2" size="15" maxlength="10" value="écrit ici" />
|
|
| Choix unique déroulant |
<select name="champ3">
|
|
| Choix multiple déroulant |
<select name="champ4" size="4" multiple>
|
|
| Zone de texte |
<textarea cols="15" rows="3" name="champ5">Écrivez ici !</textarea>
|
|
|
Choix à faire |
<ul type="none">
|
| Oui | Case à cocher |
<input type="checkbox" name="champ7" checked value="1" /> Oui
|
| Bouton d'envoi |
<input type="submit" value="C'est parti !" />
|
|
| Bouton qui remet les champs par défaut |
<input type="reset" value="Effacer" />
|
|
| Bouton d'envoi (on peut mettre une image, ...) |
<button type="submit">
|
| Aperçu | Code |
<form action="index.html" method="post">
|