Advertisement
Guest User

Form example

a guest
Nov 23rd, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.96 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5.     <meta charset="UTF-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8.     <title>Document</title>
  9.  
  10. <style>
  11. .myform
  12. {
  13.     width: 400px;
  14.     height:500px;
  15.     background: gray;
  16.     margin: 0px auto;
  17.     border: 10px solid red;
  18.     padding: 10px;
  19. }
  20.  
  21. </style>
  22.  
  23. </head>
  24. <body>
  25.    
  26. <form class="myform" >
  27.  
  28.   <h5>what's your username?</h5>  <input  type="text" />
  29.   <br/>
  30.   <h5>what's your password?</h5>   <input  type="password" />
  31.   <h5>what do you like to eat?</h5>
  32.   <input type="checkbox" />pizza
  33.   <br/>
  34.  
  35.   <input type="checkbox" />burger
  36.   <br/>
  37.   <input type="checkbox" />salad
  38.  
  39.   <h5>what's your gender?</h5>
  40.   <input type="radio"  name="gender"  /> Male
  41.   <br/>
  42.   <input type="radio"  name="gender"   /> Female
  43.  
  44.   <br/>  <br/>  
  45.  
  46.   <input type="button" value="send me!" />
  47. </form>
  48.  
  49. </body>
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement