Advertisement
Guest User

PaulaFechet

a guest
Feb 26th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.64 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5.     <style type='text/css'>
  6.         /* form elements */
  7.         form {
  8.           margin:20px;
  9.           padding:  5px;
  10.           background: #F5F5F5;  
  11.         }
  12.         label {
  13.           display:block;
  14.           font-weight:bold;
  15.           margin:5px;
  16.         }
  17.  
  18.         input {
  19.           padding:2px;
  20.           display:block;
  21.           border:1px solid #eee;
  22.           font: normal 1em Verdana, sans-serif;
  23.           color:#777;
  24.         }
  25.         .button {
  26.   background-color: #4CAF50;
  27.   border: none;
  28.   color: white;
  29.   padding: 15px 32px;
  30.   text-align: center;
  31.   text-decoration: none;
  32.   display: inline-block;
  33.   font-size: 16px;
  34.   margin: 4px 2px;
  35.   cursor: pointer;
  36. }
  37.     </style>
  38.  
  39. <h2>Un exemplu de formular este urmatorul</h2>
  40.  
  41. <form>
  42.     <div>
  43.   <label for="fname">Nume: </label>
  44.     </div>
  45.  
  46.  
  47.   <input type="text" id="fname" name="fname" value="nume">
  48.   <div>
  49.   <label  for="lname">Prenume: </label>
  50.   <input type="text" id="lname" name="lname" value="prenume">
  51.  
  52.  
  53.     <label for="pass">Parola: </label></label>
  54.     <input type="password" id="pass" name="password" minlength="8" required>
  55.  
  56.  
  57.     <label for="culori">Culoarea preferata: </label>
  58.  
  59.     <select id="culori">
  60.         <option value="verde">verde</option>
  61.         <option value="rosu">rosu</option>
  62.     </select>
  63.  
  64.     <label for= "text">Descriere</label>
  65.     <textarea id="text" rows="4" cols="50">
  66.        
  67.     </textarea>
  68.  
  69.     <input type="checkbox" id="acord" name="acorduri" >
  70.     <label for="acord"> Sunt de acord cu conditiile</label><br>
  71.     <button>Inregistreaza</button>
  72. </form>
  73.  
  74. </body>
  75. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement