lmarkov

web form

Nov 25th, 2012
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 8.46 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5.        
  6.         <title>Web from</title>
  7.        
  8.         <link rel="stylesheet" type="text/css" href="style.css" />
  9.     </head>
  10.     <body>
  11.         <div id="content">
  12.             <form method="post" action="#">
  13.                 <fieldset>
  14.                     <table>
  15.                         <tfoot>
  16.                         <tr>
  17.                             <td colspan="2" class="inputCol">
  18.                                 <input type="submit" name="submit" value="Submit" />
  19.                                 <input type="reset" value="Clear This Form" />
  20.                             </td>                            
  21.                         </tr>
  22.                         </tfoot>
  23.                         <tr>
  24.                             <td class="formLabel">
  25.                                 <label for="LastName">Last Name</label>
  26.                             </td>
  27.                             <td class="inputCol">
  28.                                 <input type="text" name="LastName" id="LastName" value="Batmanov" size="30" />
  29.                             </td>
  30.                         </tr>
  31.                         <tr>
  32.                             <td class="formLabel">
  33.                                 <label for="FirstName" >First Name</label>
  34.                             </td>
  35.                             <td class="inputCol">
  36.                                 <input type="text" name="FirstName" id="FirstName" value="Batman" size="30" />
  37.                             </td>
  38.                         </tr>
  39.                         <tr>
  40.                             <td class="formLabel">
  41.                                 <label for="Address">Address</label>
  42.                             </td>
  43.                             <td class="inputCol">
  44.                                 <textArea name="Address" id="Address" rows="5" cols="25">The Hidden Cave street 66</textArea>
  45.                             </td>
  46.                         </tr>
  47.                         <tr>
  48.                             <td class="formLabel">
  49.                                 <label for="City">City</label>
  50.                             </td>
  51.                             <td class="inputCol">
  52.                                 <input type="text" name="City" id="City" value="In the middle of..." size="15"/>
  53.                                 <label for="State">State</label>
  54.                                 <input type="text" name="State" id="State" value="Nowhere" size="5" />
  55.                             </td>
  56.                         </tr>
  57.                         <tr>
  58.                             <td class="formLabel">
  59.                                 <label for="Zip">Zip/Postal Code</label>
  60.                             </td>
  61.                             <td class="inputCol">
  62.                                 <input name="Zip" id="Zip" value="369" size="4" />                                                          
  63.                             </td>
  64.                         </tr>
  65.                         <tr>
  66.                             <td class="formLabel" >
  67.                                 <label for="Country">Country</label>
  68.                             </td>
  69.                             <td class="inputCol">
  70.                                 <select name="Country" id="Country">
  71.                                     <option>Other</option>
  72.                                     <option selected="selected">Bulgaria</option>                                    
  73.                                 </select>                                                          
  74.                             </td>
  75.                         </tr>
  76.                         <tr>
  77.                             <td class="formLabel">
  78.                                 <label for="Phone">Phone(country code, area code, number)</label>
  79.                             </td>
  80.                             <td class="inputCol">
  81.                                 (+<input name="PhoneCountryCode" id="Phone" value="359" size="5"/>)  
  82.                                 <input name="PhoneCountryCode" value="883" size="5" />-
  83.                                 <input name="PhoneCountryCode" value="666967878" size="10" />
  84.                             </td>
  85.                         </tr>
  86.                         <tr>
  87.                             <td class="formLabel">
  88.                                 <label for="Email">Email</label>
  89.                             </td>
  90.                             <td class="inputCol">
  91.                                 <input type="email" name="Email" id="Email" value="[email protected]" size="25" />                                                          
  92.                             </td>
  93.                         </tr>
  94.                         <tr>
  95.                             <td class="formLabel">
  96.                                 Birthday
  97.                             </td>
  98.                             <td class="inputCol">
  99.                                 <label for="BirthdayMonth">Month</label>
  100.                                 <input name="BirthdayMonth" id="BirthdayMonth" type="text" value="13" size="1" />
  101.                                
  102.                                 <label for="BirthdayDay">Day</label>
  103.                                 <input name="BirthdayDay" id="BirthdayDay" type="text" value="01" size="1" />
  104.                                
  105.                                 <label for="BirthdayYear">Year(4 digit)</label>
  106.                                 <input name="BirthdayYear" id="BirthdayYear" type="text" value="1989" size="2" />
  107.                             </td>
  108.                         </tr>
  109.                         <tr>
  110.                             <td class="formLabel">
  111.                                 <label for="Genre">Genre</label>
  112.                             </td>
  113.                             <td class="inputCol">
  114.                                 <select name="Genre" id="Genre">
  115.                                     <option>Female</option>
  116.                                     <option selected="selected">Male</option>
  117.                                 </select>                                                          
  118.                             </td>
  119.                         </tr>
  120.                         <tr>
  121.                             <td class="formLabel">
  122.                                 Starting date
  123.                             </td>
  124.                             <td class="inputCol">                                
  125.                                 <input type="radio" name="StartingDate" id="spring2006" value="spring2006" checked="checked"/>
  126.                                 <label for="spring2006">Sprint 2006</label>                              
  127.                                
  128.                                 <input type="radio" name="StartingDate" id="summer2006" value="summer2006"/>
  129.                                 <label for="summer2006">Summer 2006</label>
  130.                             </td>
  131.                         </tr>
  132.                         <tr>
  133.                             <td class="formLabel">
  134.                                 <label for="Comments">Comments/Questions</label>
  135.                             </td>
  136.                             <td class="inputCol">                                
  137.                                 <textarea name="Comments" id="Comments" cols="30" rows="4">Please send me more spam.</textarea>
  138.                             </td>
  139.                         </tr>                        
  140.                     </table>
  141.                 </fieldset>
  142.             </form>
  143.         </div>
  144.     </body>
  145. </html>
  146.  
  147.  
  148.  
  149. *********************************************************
  150. CSS
  151. *******************************************
  152.  
  153. root {
  154.     display: block;
  155. }
  156.  
  157. body, table, td, fieldset
  158. {
  159.     border: 0px;
  160.     margin: 0px;
  161.     padding: 0px;
  162. }
  163.  
  164. body
  165. {
  166.     font-family: "Times New Roman",Georgia,Serif;
  167.     font-size: 16px;
  168.     background-color: #FFFFFF;
  169.     color: #000000;
  170. }
  171.  
  172. #content
  173. {
  174.     margin: 10px;
  175. }
  176.  
  177. fieldset
  178. {
  179.     margin: 0px;
  180.     padding: 0px;
  181. }
  182.  
  183.  
  184.  
  185. table
  186. {
  187.     width: 500px;
  188.     border: 1px solid #bfbfbf;
  189.     border-spacing: 0px;
  190. }
  191.  
  192. td
  193. {
  194.     border: 1px solid #bfbfbf;
  195.     padding: 0px;
  196. }
  197.  
  198. tfoot
  199. {
  200.     background-color: #d1ede1;
  201.     text-align: center;
  202. }
  203.  
  204.  
  205. .formLabel
  206. {
  207.     width: 150px;
  208.     font-weight: bold;
  209.     text-align: right;
  210.     padding: 2px;
  211. }
  212.  
  213. .inputCol
  214. {
  215.     width: 350px;
  216.     padding: 5px;
  217.     padding: 2px;
  218. }
Advertisement
Add Comment
Please, Sign In to add comment