Simple HTML Login Page with CSS Styling
<!DOCTYPE html>
<html>
<head>
<title>Login Page</title>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<style type='text/css'>
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
}
h1 {
text-align: center;
margin-top: 50px;
font-size: 36px;
color: #333;
}
form {
background-color: #fff;
width: 400px;
margin: 0 auto;
padding: 20px;
border-radius: 5px;
box-shadow: 0px 0px 10px #ccc;
}
input[type='text'], input[type='password'] {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: none;
border-radius: 3px;
box-shadow: 0px 0px 5px #ccc;
font-size: 16px;
}
input[type='submit'] {
background-color: #4CAF50;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 3px;
font-size: 16px;
cursor: pointer;
}
input[type='submit']:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<h1>Login Page</h1>
<form action='login.php' method='post'>
<label for='username'>Username:</label>
<input type='text' name='username' id='username' required>
<pre><code> <label for='password'>Password:</label>
<input type='password' name='password' id='password' required>
<input type='submit' value='Login'>
</form>
</code></pre>
</body>
</html>
AI 优化版
原文地址:https://www.cveoy.top/t/topic/olQN 著作权归作者所有。请勿转载和采集!