diff options
Diffstat (limited to 'page.html')
| -rw-r--r-- | page.html | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/page.html b/page.html new file mode 100644 index 0000000..1abb2c2 --- /dev/null +++ b/page.html @@ -0,0 +1,49 @@ +<!DOCTYPE html> +<html lang="fr"> + <head> + <meta charset="utf-8"> + <title>Exemple</title> + <style> + form { + border: solid black 1px; + padding: 1em; + margin:1em; + } + #titre { + color:blue; + } + .formulaire { + color: #808080; + } + </style> + </head> + <body> + <h1 id="titre">Système d'exploitation</h1> + <div> + <strong>Questionnaire</strong> + <form action="page.php" method="post"> + <p class="formulaire"> + Votre nom :<input type="text" name="nom"> + </p> + <p class="formulaire"> + Votre OS : <select name="os" maxlength=7> + <option label="------"></option> + <option>Mac Os</option> + <option>Windows</option> + </select> + </p> + <p> + <input type="submit" value="Valider"> + </p> + </form> + <p><em> + Merci + </em></p> + </div> + <script> + document.querySelector("input[type=submit]").onclick=function(){ + document.cookie="date="+Date.now()/1000 + } + </script> + </body> +</html> |
