用html写个登录页面
时间: 2023-08-10 22:20:32 浏览: 44
好的,以下是一个基于HTML的登录页面示例:
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Login Page</title>
</head>
<body>
<form action="#" method="POST">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<br><br>
<input type="submit" value="Login">
</form>
</body>
</html>
```
您可以将此代码复制到您的HTML文件中,并根据需要进行修改。请注意,此示例仅包含简单的HTML表单,不包含实际的登录逻辑。
相关问题
用html写个登录界面
Sure, here is a simple HTML code for a login form:
```
<!DOCTYPE html>
<html>
<head>
<title>Login Form</title>
</head>
<body>
<form>
<label for="username">Username:</label>
<input type="text" id="username" name="username"><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password"><br><br>
<input type="submit" value="Login">
</form>
</body>
</html>
```
Please note that this is just a basic example and it is important to implement proper security measures when handling user authentication in real-world applications.
用HTML写个登录页面
好的,以下是一个基于HTML的登录页面示例:
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Login Page</title>
</head>
<body>
<form action="#" method="POST">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<br><br>
<input type="submit" value="Login">
</form>
</body>
</html>
```
您可以将此代码复制到您的HTML文件中,并根据需要进行修改。请注意,此示例仅包含简单的HTML表单,不包含实际的登录逻辑。