avr39-ripe

formProcessingBasics

May 15th, 2020
2,103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>TableTest</title>
  6.         <style>
  7.         html,
  8.         body {
  9.             display: flex;
  10.             align-items: center;
  11.             justify-content: center;
  12.             width: 100%;
  13.             height: 100%;
  14.         }
  15.  
  16.         .centered {
  17.             display: flex;
  18.             flex-direction: column;
  19.             align-items: center;
  20.             justify-content: center;
  21.  
  22.             border: 2px solid black;
  23.            
  24.         }
  25.  
  26.         </style>
  27.     </head>
  28.     <body>
  29.         <div id="mainDiv" class="centered">
  30.             <form id="baseForm" action="formBase.html" method="GET" class="centered">
  31.                 <lable for="firstName">First Name</lable>
  32.                 <input type="text" name="firstName" id="firstName" tabindex="1">
  33.                 <lable for="secondName">Second Name</lable>
  34.                 <input type="text" name="lastName" id="lastName" tabindex="3">
  35.                 <lable for="birthday">Birthday</lable>
  36.                 <input type="text" name="birthday" id="birthday" tabindex="4">
  37.                 <lable for="gender">Male</lable>
  38.                 <input type="radio" name="gender" value="Male" tabindex="2">
  39.                 <lable for="gender">Female</lable>
  40.                 <input type="radio" name="gender" value="Female">
  41.                 <lable for="gender">Other</lable>
  42.                 <input type="radio" name="gender" value="Other">
  43.  
  44.                 <lable for="rock">Rock music</lable>
  45.                 <input type="checkbox" name="rock" value="Rock music">
  46.                 <lable for="rock">Pop music</lable>
  47.                 <input type="checkbox" name="pop" value="Pop music">
  48.                 <lable for="classic">Classic music</lable>
  49.                 <input type="checkbox" name="classic" value="Classic music">
  50.  
  51.                 <fieldset name="addInfo">
  52.                     <legend>Additional info</legend>
  53.                     <lable for="country">Country</lable>
  54.                     <select name="country" id="country">
  55.                         <option value="ua">Ukraine</option>
  56.                         <option value="sk">Slovakia</option>
  57.                         <option value="hu">Hungary</option>
  58.                         <option value="pl">Poland</option>
  59.                     </select>
  60.                     <lable for="city">City</lable>
  61.                     <input type="text" name="city" id="city">
  62.                 </fieldset>
  63.                 <input type="submit" value="Send form!">
  64.             </form>
  65.             <lable for="occupation">Occupation</lable>
  66.             <input type="text" name="occupation" id="occupation" form="baseForm">
  67.         </div>
  68.         <script>
  69.             //document.getElementById('birthday').focus();
  70.         </script>
  71.     </body>
  72. </html>
Advertisement
Add Comment
Please, Sign In to add comment