Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.11 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="BG">
  3.  
  4. <head>
  5.     <title>Стилизиране на уеб форма</title>
  6.     <meta charset="utf-8">
  7.     <!--Линк към CSS файл със стилове-->
  8.     <link rel="stylesheet" type="text/css" href="CSS/formstyle.css">
  9.     <script type="text/javascript" src="JS/validation.js"></script>
  10. </head>
  11. <body>
  12.     <div class="center topspace">
  13.         <h3 class="title">Изглед на стилизирана уеб форма</h3>
  14.         <h4 class="title">Валидиране на форма</h4>
  15.      </div>
  16.  
  17.      <form id="regform" name="myForm" onsubmit="event.preventDefault(); validate()">
  18.        <div class="formfield">
  19.             <label class="labelview" for="username">Въведете потребителско име:</label>
  20.             <input class="textfield" type="text" id="username" name="uname" value="" />
  21.             <!--<span id="namelocation" style="color:red"></span> -->
  22.             <p class="error" id="namelocation"></p>
  23.             <p class="error" id="username-error"></p>
  24.         </div>
  25.         <div class="formfield errorplace">
  26.             <label class="labelview" for="password">Въведете парола:</label>
  27.             <input class="textfield" type="password" id="password" name="password" value="" />
  28.             <!--<span id="passwordlocation" style="color:red"></span>-->
  29.             <p class="error" id="passwordlocation"></p>
  30.             <p class="error" id="password-error"></p>
  31.         </div>
  32.         <div class="formfield errorplace">
  33.             <label class="labelview" for="password">Въведете парола отново:</label>
  34.             <input class="textfield" type="password" id="password2" name="password2" value="" />
  35.             <!--<span id="passwordlocation2" style="color:red"></span>-->
  36.             <p class="error" id="passwordlocation2"></p>
  37.             <p class="error" id="password-error"></p>
  38.         </div>
  39.         <div class="button formfield">
  40.             <button type="submit" value="Register" id="submit-btn">Изпрати</button>
  41.         </div>
  42.  
  43.     </form>
  44.    
  45.    
  46. </body>
  47. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement