formulaire html code example

Example 1: html redirect

<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="0; url=http://example.com">
        <script type="text/javascript">
            window.location.href = "http://example.com"
        </script>
        <title>Page Redirection</title>
    </head>
    <body>
        <!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
        If you are not redirected automatically, follow this <a href='http://example.com'>link to example</a>.
    </body>
</html>

Example 2: formulaire html

<!DOCTYPE html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="design.css">
	</head>
	<body>
    <form action ="traitement.php" method ="post/get">
        <p>
          Remplissez ce formulaire:<br>
          Nom:
      
            <input type="text" name="prenom">
        </p>
   
       <p>
       Prénom:
     
            <input type="text" name="Nom">
      </p>
              
            <p>
              Nom de la sociétée:
             <input type="text" name="Nom de ma sociétée"> <br>
            </p>
      
      <select name="requete">
            <option value= "Prendre contacte">Prendre contacte</option>
            <option value= "embaucher moi">embaucher moi</option>
            <option value="j'ai besoin d'un stagiaire">j'ai besoin d'un stagiaire<option>      
         </select> 
      
         
        
    <label>Votre message:</label><br>
         <textarea></textarea> <br>
      
    </form>
    
    <section>
    </section>
    
         <form>
           <label for="Quelle est votre CB?">
              Quelle est votre CB?
           </label>
           <input type="text" list="cartes" name="cartes">
              <datalist id="cartes">
                     <option value= "GOLD">Gold</option>
                    <option value= "Master card">Master card</option>
                    <option value= "Visa classique">Visa classique</option>
           </datalist>
    </form>
		
	</body>

Example 3: html form

<form action="/action.php">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" value="Mike"><br><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" value="Walker"><br><br>
  <input type="submit" value="Submit">
</form>

Html By Duco Defiant Dogfish on Feb 11 2020
<form action="/action_page.php">
  First name:<br>
  <input type="text" name="firstname" value="Mickey"><br>
  
  Last name:<br>
  <input type="text" name="lastname" value="Mouse"><br><br>
  
  <input type="submit" value="Submit">
</form>