index.html 752 B

1234567891011121314151617181920212223242526272829
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>HW1</title>
  6. <style>
  7. #message {
  8. width: 120px;
  9. font-size: 18px;
  10. }
  11. .success-message {
  12. background-color: palegreen;
  13. }
  14. .fail-message {
  15. background-color: #ff6b6b;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <div>
  21. <form>
  22. <input type="text" id="login" placeholder="login">
  23. <input type="text" id="password" placeholder="password">
  24. <button id="login-btn">Log in</button>
  25. </form>
  26. </div>
  27. <script src="index.js"></script>
  28. </body>
  29. </html>