登录页面html
body {
background-color: #f2f2f2;
font-family: Arial
sans-serif;
margin: 0;
padding: 0;
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
padding: 0 20px;
}
.login-box {
width: 400px;
background-color: #fff;
border-radius: 5px;
padding: 40px;
box-shadow: 0 0 10px rgba(0
0
0
0.1);
}
.login-box h2 {
text-align: center;
margin-bottom: 20px;
}
.login-box input[type="text"]
.login-box input[type="password"] {
width: *;
padding: 10px;
border: 1px solid #ccc;
outline: none;
margin-bottom: 20px;
font-size: 16px;
}
.login-box input[type="submit"] {
width: *;
background-color: #4caf50;
color: white;
border: none;
padding: 10px;
font-size: 18px;
cursor: pointer;
border-radius: 2px;
}
.login-box input[type="submit"]:hover {
background-color: #45a049;
}
Login
This is a simple login page HTML code that you can use as a starting point for your login page. The code includes HTML
CSS
and minimal styling to create a login form. Here's a breakdown of the code:
1. The doctype declaration specifies the version of HTML being used.
2. The element is the root element of the HTML page.
3. The element contains meta-information about the HTML page
such as the title and any stylesheets.
4. The
which is displayed in the browser's title bar.
5. The