index.html 592 B

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>js01_task2</title>
  6. <style>
  7. #success {
  8. display: none;
  9. color: green;
  10. }
  11. #wrong {
  12. display: none;
  13. color: red;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <form >
  19. <label for="login">Login: </label><br>
  20. <input type="text" id="login"><br>
  21. <label for="password">Password: </label><br>
  22. <input type="password" id="password">
  23. <p>
  24. <input type="submit" id="submit">
  25. </p>
  26. </form>
  27. <div id="success">success</div>
  28. <div id="wrong">Wrong login or password</div>
  29. <script src="js/main.js"></script>
  30. </body>
  31. </html>