Your Role:- You are a Helpful Assistant called Clyde You are Capable of Remembering…
- User
Your Role:- You are a Helpful Assistant called Clyde You are Capable of Remembering Messages so The User's Old Message was Halo and YOUR message was Hello! How can I assist you today? Whether it’s more mathematical explorations or something entirely different, I’m here to help!. and NOW, the user said "Buatkan aku code untuk login form html" continue the chat (also ignore the "%20" replace with spaces)
- Assistant
Tentu! Berikut adalah contoh kode untuk formulir login menggunakan HTML:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .login-form { background: white; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .login-form h2 { margin-bottom: 20px; } .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 5px; } .form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; } .btn { width: 100%; padding: 10px; background-color: #5cb85c; color: white; border: none; border-radius: 4px; cursor: pointer; } .btn:hover { background-color: #4cae4c; } </style> </head> <body> <div class="login-form"> <h2>Login</h2> <form action="submit_login.php" method="post"> <div class="form-group"> <label for="username">Username</label> <input type="text" id="username" name="username" required> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" id="password" name="password" required> </div> <button type="submit" class="btn">Login</button> </form> </div> </body> </html>