1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
Welcome to our Education website, plz like our page facebook to support us. Thank You and wish you good navigation

Formulaire en HTML Exercices corrigés HTML

abdelouafiJan 8, 2017

    1. abdelouafi

      abdelouafi Administrator Staff Member

      Messages:
      295
      Likes Received:
      9
      Trophy Points:
      18
      Joined
      Sep 13, 2016
      Exercice 1:
      1- Ecrire le code HTML qui permet de réaliser le formulaire suivant:
      form.png
       
      Loading...
      Exercice 1:
      HTML:
      <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
      <html>
      <head>
      <title>corrige exo1</title>
      </head>
      <body>
      <h1>Formulaire:</h1>
      <form name=monformulaire>
      <table BORDER WIDTH="300" HEIGHT="125" >
      <tr>
      <td><input type=button value= Nom ></td>
      <td><input type=text name=nom size=20></td>
      </tr>
      <tr>
      <td><input type=button value= Telephone ></td>
      <td><input type=text name=tel size=20></td>
      </tr>
      <tr>
      <td><input type=button value= Adresse ></td>
      <td><input type=text name=adresse size=20></td>
      </tr>
      </table>
      <p>&nbsp;</p>
      
      <input type=button value=valider
      onClick="window.parent.reponse.document.write('nom =', document.monformulaire.nom.value);
      window.parent.reponse.document.write('<P>adresse=', document.monformulaire.adresse.value);
      window.parent.reponse.document.write('</P><P>telephone=',document.monformulaire.tel.value);
      window.parent.reponse.document.write('</P>');">
      
      </form>
      </BODY>
      </HTML> 

Share This Page

Share