html
<title>登录页面</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
}
.container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"], input[type="password"] {
width: 100%;
padding: 10px;
border-radius: 4px;
border: 1px solid #ccc;
}
input[type="submit"] {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
</style>
<div class="container">
<h2>登录</h2>
<form> <!-- 登录表单 -->
<div class="form-group"> <!-- 表单项容器 -->
<label for="username">用户名:</label> <!-- 表单项标签 -->
<input type="text" id="username" name="username" required> <!-- 表单项输入框 -->
</div> <!-- 结束表单项容器 -->
<div class="form-group"> <!-- 表单项容器 -->
<label for="password">密码:</label> <!-- 表单项标签 -->
<input type="password" id="password" name="password" required> <!-- 表单项密码输入框 -->
</div> <!-- 结束表单项容器 --> <!-- 添加验证码表单项容器 --> <!-- 这里可以添加验证码的HTML代码 --> <!-- 结束验证码表单项容器 --> <!-- 表单提交按钮 --> <input type="submit" value="登录"> <!-- 结束表单提交按钮 --> </form> <!-- 结束登录表单 --> </div> <!-- 结束容器 --> </body> <!-- 结束HTML主体内容 --> </html> <!-- 结束HTML文档 -->``这是一个基本的登录页面HTML结构,你可以在<form>标签内部添加验证码的HTML代码,验证码通常使用<input type="text">或<input type="captcha">`来创建输入框,并使用JavaScript或后端语言生成和验证验证码,这只是一个简单的示例,实际开发中可能需要更多的功能和安全性措施。









