Advertisement
nikolov_k

01 Web Form

Nov 26th, 2012
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 6.94 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.     <title>Web Form</title>
  5.     <style type="text/css">
  6.         table, td, th
  7.         {
  8.             border: 1px solid #615C5C;
  9.             border-collapse: collapse;
  10.             padding: 5px;
  11.         }
  12.         th
  13.         {
  14.             text-align: right;
  15.         }
  16.         input
  17.         {
  18.             width: 300px;
  19.         }
  20.         input[type="radio"]
  21.         {
  22.             width: 20px;
  23.         }
  24.         tfoot
  25.         {
  26.             background:#11CBEE;
  27.             text-align: center;
  28.         }
  29.         tfoot input
  30.         {
  31.             width: auto;
  32.         }
  33.         #address
  34.         {
  35.             width: 300px;
  36.             height: 70px;
  37.         }
  38.         #city, #state
  39.         {
  40.             width: 100px;
  41.         }
  42.         #countryCode, #areaCode
  43.         {
  44.             width: 40px;
  45.         }
  46.         #phone
  47.         {
  48.             width: 80px;
  49.         }
  50.         #birthDay, #birthMonth
  51.         {
  52.             width: 30px;
  53.         }
  54.         #birthYear
  55.         {
  56.             width: 50px;
  57.         }
  58.         #comments
  59.         {
  60.             width:300px;
  61.             height: 100px;
  62.         }
  63.         .left
  64.         {
  65.             width: 200px;
  66.         }
  67.     </style>
  68. </head>
  69. <body>
  70.     <form action="01WebForm.html" method="post">
  71.     <table>
  72.         <colgroup>
  73.             <col class="left" />
  74.             <col class="first" />
  75.             <col class="second" />
  76.             <col class="third" />
  77.         </colgroup>
  78.         <tfoot>
  79.             <tr>
  80.                 <td colspan="4">
  81.                     <input type="submit" value="Submit" />
  82.                     <input type="reset" value="Clear This Form" />
  83.                 </td>
  84.             </tr>
  85.         </tfoot>
  86.         <tbody>
  87.             <tr>
  88.                 <th>
  89.                     <label for="lastName">
  90.                         Last Name</label>
  91.                 </th>
  92.                 <td colspan="3">
  93.                     <input id="lastName" name="lastName" type="text" value="Nakov" />
  94.                 </td>
  95.             </tr>
  96.             <tr>
  97.                 <th>
  98.                     <label for="firstName">
  99.                         First Name</label>
  100.                 </th>
  101.                 <td colspan="3">
  102.                     <input id="firstName" name="firstName" type="text" value="Svetlin" />
  103.                 </td>
  104.             </tr>
  105.             <tr>
  106.                 <th>
  107.                     <label for="address">
  108.                         Address</label>
  109.                 </th>
  110.                 <td colspan="3">
  111.                     <textarea id="address" name="address">17 Hristo Botev Str.
  112. floor 3, apt. 12</textarea>
  113.                 </td>
  114.             </tr>
  115.             <tr>
  116.                 <th>
  117.                     <label for="city">
  118.                         City</label>
  119.                 </th>
  120.                 <td>
  121.                     <input id="city" name="city" type="text" value="Kaspichan" />
  122.                 </td>
  123.                 <th>
  124.                     <label for="state">
  125.                         State</label>
  126.                 </th>
  127.                 <td>
  128.                     <input id="state" name="state" type="text" value="" />
  129.                 </td>
  130.             </tr>
  131.             <tr>
  132.                 <th>
  133.                     <label for="postCode">
  134.                         Zip/Postal Code</label>
  135.                 </th>
  136.                 <td colspan="3">
  137.                     <input id="postCode" name="postCode" type="text" value="9325" />
  138.                 </td>
  139.             </tr>
  140.             <tr>
  141.                 <th>
  142.                     <label for="country">
  143.                         Country</label>
  144.                 </th>
  145.                 <td colspan="3">
  146.                     <select id="country" name="country">
  147.                         <option>Bulgaria</option>
  148.                         <option>Romania</option>
  149.                         <option>Brazil</option>
  150.                         <option>Turkey</option>
  151.                     </select>
  152.                 </td>
  153.             </tr>
  154.             <tr>
  155.                 <th>
  156.                     <label for="phone">
  157.                         Phone (country code,
  158.                         <br />
  159.                         area code, number)</label>
  160.                 </th>
  161.                 <td colspan="3">
  162.                     (+<input id="countryCode" name="countryCode" type="text" value="359" />)
  163.                     <input id="areaCode" name="areaCode" type="text" value="88" />-
  164.                     <input id="phone" name="phone" type="text" value="8334343" />
  165.                 </td>
  166.             </tr>
  167.             <tr>
  168.                 <th>
  169.                     <label for="eMail">
  170.                         E-mail</label>
  171.                 </th>
  172.                 <td colspan="3">
  173.                     <input id="eMail" name="eMail" type="email" value="nakov@kaspichan.org" />
  174.                 </td>
  175.             </tr>
  176.             <tr>
  177.                 <th>
  178.                     Birth Date
  179.                 </th>
  180.                 <td colspan="3">
  181.                     <label for="birthMonth">
  182.                         Month</label>
  183.                     <input id="birthMonth" name="birthMonth" type="text" value="06" />
  184.                     <label for="birthDay">
  185.                         Day</label>
  186.                     <input id="birthDay" name="birthDay" type="text" value="14" />
  187.                     <label for="birthYear">
  188.                         Year(4 digit)</label>
  189.                     <input id="birthYear" name="birthYear" type="text" value="1980" />
  190.                 </td>
  191.             </tr>
  192.             <tr>
  193.                 <th>
  194.                     <label for="gender">
  195.                         Gender</label>
  196.                 </th>
  197.                 <td colspan="3">
  198.                     <select id="gender" name="gender">
  199.                         <option>male</option>
  200.                         <option>female</option>
  201.                     </select>
  202.                 </td>
  203.             </tr>
  204.             <tr>
  205.                 <th>
  206.                     Starting Date
  207.                 </th>
  208.                 <td colspan="3">
  209.                     <input id="spring2006" name="startingDate" type="radio" checked="checked" />
  210.                     <label for="spring2006">
  211.                         Spring 2006</label>
  212.                     <input id="summer2006" name="startingDate" type="radio" />
  213.                     <label for="summer2006">
  214.                         Summer 2006</label>
  215.                 </td>
  216.             </tr>
  217.             <tr>
  218.                 <th>
  219.                     <label for="comments">
  220.                         Comments/Questions</label>
  221.                 </th>
  222.                 <td colspan="3">
  223.                     <textarea id="comments" name="comments">Please send me more information about the lodging.
  224.                     </textarea>
  225.                 </td>
  226.             </tr>
  227.         </tbody>
  228.     </table>
  229.     </form>
  230. </body>
  231. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement