Advertisement
Guest User

Untitled

a guest
Sep 30th, 2021
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. <%@page import="java.util.Date"%>
  2. <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  3. pageEncoding="ISO-8859-1"%>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta charset="ISO-8859-1">
  8. <title>register form</title>
  9.  
  10. <style>
  11. input[type=text], select {
  12. width: 100%;
  13. padding: 12px 20px;
  14. margin: 8px 0;
  15. display: inline-block;
  16. border: 1px solid #ccc;
  17. border-radius: 4px;
  18. box-sizing: border-box;
  19. }
  20. h1{
  21. text-align: center;
  22. }
  23.  
  24. input[type=submit] {
  25. width: 49%;
  26. background-color: #4CAF50;
  27. color: white;
  28. padding: 14px 20px;
  29. margin: 8px 0;
  30. border: none;
  31. border-radius: 4px;
  32.  
  33. }
  34.  
  35. input[type=reset]:hover {
  36. background-color: #45a049;
  37. }
  38.  
  39. input[type=reset] {
  40. width: 50.5%;
  41. background-color: #4CAF50;
  42. color: white;
  43. padding: 14px 20px;
  44. margin: 8px 0;
  45. border: none;
  46. border-radius: 4px;
  47. cursor: pointer;
  48.  
  49. }
  50.  
  51. input[type=submit]:hover {
  52. background-color: #45a049;
  53. }
  54.  
  55.  
  56. .container{
  57. border-radius: 5px;
  58. background-color: #f2f2f2;
  59. padding: 20px;
  60. }
  61. .vertical-center {
  62. margin: 0;
  63. position: absolute;
  64. top: 50%;
  65. -ms-transform: translateY(-50%);
  66. transform: translateY(-50%);
  67. }
  68. </style>
  69. </head>
  70.  
  71. <body>
  72. <div class="container">
  73. <h1>Register Form</h1>
  74. <form name="demoForm" action="result.jsp" method="post">
  75. <table align="center">
  76. <tbody>
  77. <tr>
  78. <td>First Name:</td>
  79. <td><input type="text" name="first" value="" size="50"></td>
  80. </tr>
  81.  
  82. <tr>
  83. <td>Last Name:</td>
  84. <td><input type="text" name="last" value="" size="50"></td>
  85. </tr>
  86.  
  87. <tr>
  88. <td>E-mail</td>
  89. <td><input type="text" name="email" value="" size="50"></td>
  90. </tr>
  91.  
  92. <tr>
  93. <td>Tel</td>
  94. <td><input type="text" name="tel" value="" size="50"></td>
  95. </tr>
  96.  
  97. </tbody>
  98. </table>
  99. <br>
  100. <input type="submit" value="Submit" class="submit" align="center">
  101. <input type="reset" value="Clear" class="clear" align="center">
  102.  
  103. </form>
  104. </div>
  105. </body>
  106. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement