Advertisement
piffy

form_formattato

Sep 10th, 2014
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.60 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Form elementare</title>
  5.     <style>
  6.         form {border-left: 4px red; font-family : handwriting,fantasy;}
  7.         input {
  8.             border: 1px dotted #999;
  9.             width: 150px;
  10.         }
  11.         legend {background-color: yellow;}
  12.         button, input, select, textarea {
  13.             font-family : inherit;
  14.             font-size   : 120%;
  15.         }
  16.     </style>
  17. </head>
  18. <body>
  19. <form id='esempio' method='get' action='' >
  20.     <fieldset>
  21.         <legend>Dati essenziali</legend>
  22.         <p>Nome: <input type='text' name='Nome' /></p>
  23.         <p>Email: <input type='text' name='Email' /></p>
  24.         <p>Password: <input type='password' name='Email'></p>
  25.     </fieldset>
  26.     <p> Paese </br>
  27.         <select name="paese">
  28.             <option value="I">Italia</option>
  29.             <option value="E">Estero</option>
  30.         </select><br></p>
  31.     <p>Sesso<br>
  32.         <input type="radio" name="sesso" value="M"> M<br>
  33.         <input type="radio" name="sesso" value="F"> F<br>
  34.         Hobby<br>
  35.         <input type="checkbox" name="hobby" value="S"> Sport<br>
  36.         <input type="checkbox" name="hobby" value="L"> Lettura<br>
  37.         <input type="checkbox" name="hobby" value="C"> Cinema<br>
  38.         <input type="checkbox" name="hobby" value="I"> Internet<br>
  39.     </p>
  40.     <p>Commento<br>
  41.         <textarea name="commento" rows="5" cols="30"></textarea>
  42.     </p> <p>
  43.     <input type='submit' name='Submit' value='Invia!' />
  44.     <input type='reset' name='Reset' value='Azzera' />
  45.     <input type='button' name='NoAction' />
  46. </p></form>
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement