vonko1988

html_forms_homework_task1.html

Jan 20th, 2014
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.56 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3.     <head>
  4.         <title>Task1</title>
  5.         <link rel = "stylesheet" href = "task1.css"/>
  6.     </head>
  7.     <body>
  8.         <form name = "registration" method = "post" action = "#">  
  9.             <table>
  10.                 <tfoot>
  11.                     <tr>
  12.                         <td colspan = "2">
  13.                             <input type = "submit" name = "submit" value = "Submit"/>
  14.                             <input type = "reset"  name = "reset" value = "Clear This Form"/>
  15.                         </td>
  16.                     </tr>
  17.                 </tfoot>
  18.                 <tbody>
  19.                     <tr>
  20.                         <td>
  21.                             <label for = "lastName">Last Name</label>
  22.                         </td>
  23.                         <td>
  24.                             <input type = "text" name = "lastName" id="lastName" value = "Nakov" pattern = "^[a-zA-Z]+((\s|\-)[a-zA-Z]+)?$" required = "required"/>
  25.                         </td>
  26.                     </tr>
  27.                     <tr>
  28.                         <td>
  29.                             <label for ="firstName">First Name</label>
  30.                         </td>
  31.                         <td>
  32.                             <input type = "text" name = "firstName" id = "firstName" value = "Svetlin" pattern = "^[a-zA-Z]+((\s|\-)[a-zA-Z]+)?$" required = "required"/>
  33.                         </td>
  34.                     </tr>
  35.                     <tr>
  36.                         <td>
  37.                             <label for = "address">Address</label>
  38.                         </td>
  39.                         <td>
  40.                             <textarea name = "address" id = "address" required = "required">17 Hristo Botev Str. floor 3, apt. 12</textarea>
  41.                         </td>
  42.                     </tr>
  43.                     <tr>
  44.                         <td>
  45.                             <label for = "city">City</label>
  46.                         </td>
  47.                         <td>
  48.                             <input type = "text" name ="city" id ="city" value ="Kaspichan" required = "required" pattern = "^[a-zA-Z]+((\s|\-)[a-zA-Z]+)?$"/>
  49.                             <span><label for = "state">State</label></span>
  50.                             <input type = "text" name = "state" id ="state" pattern = "^[a-zA-Z]+((\s|\-)[a-zA-Z]+)?$" required = "required"/>
  51.                         </td>
  52.                     </tr>
  53.                     <tr>
  54.                         <td>
  55.                             <label for = "postalCode">Zip/Postal Code</label>
  56.                         </td>
  57.                         <td>
  58.                             <input type = "text" name = "postalCode" id = "postalCode" value = "9325" required = "required"/>
  59.                         </td>
  60.                     </tr>
  61.                     <tr>
  62.                         <td>
  63.                             <label for = "country">Country</label>
  64.                         </td>
  65.                         <td>
  66.                             <select name = "country" id ="country">
  67.                                 <option id = "Bulgaria" selected = "selected">Bulgaria</option>
  68.                                 <option id = "USA">USA</option>
  69.                                 <option id = "sovietUnion">Soviet Union</option>
  70.                             </select>
  71.                         </td>
  72.                     </tr>
  73.                     <tr>
  74.                         <td>
  75.                             <label for = "phone1">Phone(country code, area code, number)</label>
  76.                         </td>
  77.                         <td>
  78.                             (+<input type = "text" name = "phone1" id = "phone1" pattern = "^([0-9]|[1-9][0-9]|[1-9][0-9][0-9])$" value = "359" required = "required"/>)
  79.                             <input type = "text" name = "phone2" pattern = "[0-9]{1,2}" value = "88" required = "required"/>-
  80.                             <input type = "text" name = "phone3" pattern = "\b\d{7}\b" value = "8334343" required = "required"/>
  81.                         </td>
  82.                     </tr>
  83.                     <tr>
  84.                         <td>
  85.                             <label for = "email">E-mail</label>
  86.                         </td>
  87.                         <td>
  88.                             <input type = "text" name = "email" id ="email" value = "[email protected]" required = "required" pattern = "^\w+[\w-\.]*\@\w+((-\w+)|(\w*))\.[a-z]{2,3}$"/>
  89.                         </td>
  90.                     </tr>
  91.                     <tr>
  92.                         <td>
  93.                             <label for ="month">Birth Date</label>
  94.                         </td>
  95.                         <td>
  96.                                 <label for ="month">Month</label>
  97.                                 <input type = "text" name = "month" id = "month" value = "06" required = "required" pattern = "[0-9]{1,2}"/>
  98.                                 <label for ="day">Day</label>
  99.                                 <input type = "text" name = "day" id = "day" value = "14" required = "required" pattern = "[0-9]{1,2}" />
  100.                                 <label for ="year">Year(4 Digit)</label>
  101.                                 <input type = "text" name = "year" id = "year" value = "1980" required = "required" pattern = "^\d{4}$" />
  102.                         </td>
  103.                     </tr>
  104.                     <tr>
  105.                         <td>
  106.                             <label for = "gender">Gender</label>
  107.                         </td>
  108.                         <td>
  109.                             <select name="gender" id = "gender">
  110.                                 <option id = "male" selected="selected">Male</option>
  111.                                 <option id = "female">Female</option>
  112.                             </select>
  113.                         </td>
  114.                     </tr>
  115.                     <tr>
  116.                         <td>
  117.                             <label for ="spring2006">Starting Date</label>
  118.                         </td>
  119.                         <td>
  120.                             <input type = "radio" name ="startDate" value = "Spring 2006" id = "spring2006" checked/><label for = "spring2006">Spring 2006</label>
  121.                             <input type = "radio" name = "startDate" value = "Summer 2006" id = "summer2006"/><label for = "summer2006">Summer 2006</label>
  122.                         </td>
  123.                     </tr>
  124.                     <tr>
  125.                         <td>
  126.                             <label for = "comments">Comments/Questions</label>
  127.                         </td>
  128.                         <td>
  129.                             <textarea name = "comments" id = "comments" required = "required">Please send us more information about the lodging</textarea>
  130.                         </td>
  131.                     </tr>
  132.                 </tbody>
  133.             </table>
  134.         </form>
  135.     </body>
  136. </html>
Advertisement
Add Comment
Please, Sign In to add comment