Tugas form login html
FORM LOGIN HTML
Hasil Codingan HTML
Codingan HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Page</title>
<style>
}
.container {
width: 350px;
padding: 20px;
background: white;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: auto 50px;
}
.login-container {
background: #ffffff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 300px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.form-group input {
width: 100%;
padding: 10px;
border: 1px solid #cccccc;
border-radius: 4px;
}
.form-group input:focus {
border-color: #007bff;
outline: none;
}
.login-button {
width: 100%;
padding: 10px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
}
.login-button:hover {
background-color: #0056b3;
}
.message {
text-align: center;
margin-top: 15px;
color: red;
}
a {
text-decoration: none;
}
</style>
</head>
<body>
<div class="login-container">
<center> <img src="Paskal.jpg" width="150" height="150"style="border-radius: 100%;">
<center/>
<h1><center>Form Login</h1>
<form id="loginForm">
<div class="form-group">
<label for="username"></label>
<input type="text" id="username" name="username" placeholder="username" required>
</div>
<div class="form-group">
<label for="password"></label>
<input type="password" id="password" name="password" placeholder="password" required>
</div>
<button type="button" class="login-button" onclick="validateLogin()">Login</button>
<div class="message" id="message"></div>
</form>
<a href="contoh.html"> Lupa Sandi? </a>
</body>
</html>

Komentar
Posting Komentar