Advertisement
eightmoons

Untitled

Dec 4th, 2020
938
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.56 KB | None | 0 0
  1. <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  2.    pageEncoding="ISO-8859-1"%>
  3. <!DOCTYPE html>
  4. <html>
  5.  
  6. <head>
  7.     <meta charset="ISO-8859-1">
  8.     <title>Welcome!</title>
  9. </head>
  10. <style>
  11.     body {
  12.         font-family: Arial, Helvetica, sans-serif;
  13.         }
  14.     form {
  15.         border: 3px solid #f1f1f1;
  16.         padding: 16px;
  17.     }
  18.  
  19.     input[type=number], select {
  20.         width: 100%;
  21.         padding: 12px 20px;
  22.         margin: 8px 0;
  23.         display: inline-block;
  24.         border: 1px solid #ccc;
  25.         box-sizing: border-box;
  26.     }
  27.  
  28.     input[type=submit] {
  29.         background-color: #4CAF50;
  30.         color: white;
  31.         padding: 14px 20px;
  32.         margin: 8px 0;
  33.         border: none;
  34.         cursor: pointer;
  35.         width: 100%;
  36.     }
  37. </style>
  38. <body>
  39.     <form action="output.jsp">
  40.         <label for="shapes">Choose a shape to calculate:</label>
  41.         <select name="shape" id="shape">
  42.             <option value="circle">Circle</option>
  43.             <option value="triangle">Triangle</option>
  44.             <option value="rectangle">Rectangle</option>
  45.             <option value="square">Square</option>
  46.         </select>
  47.         <br>
  48.         <br>
  49.         *If you choose circle please fill up radius only*<br>
  50.         *Strictly Integer input only*
  51.         <br>
  52.         <br>
  53.         Base/Width/Radius/Side:<input type="number" name="value1" /><br />
  54.         <br>
  55.         Height/Length:<input type="number" name="value2" /><br />
  56.         <input type="submit" value="submit" />
  57.     </form>
  58. </body>
  59.  
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement