<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网页标题</title>
<link rel="icon" href="img/logo.png" type="image/x-icon">
<link rel="shortcut icon" href="img/logo.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="CSS.css">
</head>
<body>
<div class="css">Hellow Word!</div>
<form action="/submit" method="post">
<label for="email">邮箱:</label>
<input type="email" id="email" name="email" required><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password" required><br>
<button type="submit">登录</button>
<button type="reset">清除</button>
</form>
<div class="div-1">你好世界</div>
<!-- 作者:栀子花.451 -->
<!-- 时间:2025-5-2 -->
</body>
</html>
.css {
font-size: 25px;
}
.div-1 {
width: 200px;
height: 150px;
margin-top: 50px;
margin-left: 300px;
background-color: aquamarine;
font-size: 15px;
color: indigo;
}
input,
button {
padding: 8px;
margin: 5px 0;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
background-color: #4CAF50;
color: white;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
一:邮箱号
<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网页标题</title>
<link rel="icon" href="img/logo.png" type="image/x-icon">
<link rel="shortcut icon" href="img/logo.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="CSS.css">
</head>
<body>
<div class="css">Hellow Word!</div>
<form action="/submit" method="post">
<label for="email">邮箱:</label>
<input type="email" id="email" name="email" required>
</form>
<div class="div-1">你好世界</div>
<!-- 作者:栀子花.451 -->
<!-- 时间:2025-5-2 -->
</body>
</html>
二:密码区
<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网页标题</title>
<link rel="icon" href="img/logo.png" type="image/x-icon">
<link rel="shortcut icon" href="img/logo.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="CSS.css">
</head>
<body>
<div class="css">Hellow Word!</div>
<form action="/submit" method="post">
<label for="password">密码:</label>
<input type="password" id="password" name="password" required>
</form>
<div class="div-1">你好世界</div>
<!-- 作者:栀子花.451 -->
<!-- 时间:2025-5-2 -->
</body>
</html>
三:登录按钮
<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网页标题</title>
<link rel="icon" href="img/logo.png" type="image/x-icon">
<link rel="shortcut icon" href="img/logo.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="CSS.css">
</head>
<body>
<div class="css">Hellow Word!</div>
<form action="/submit" method="post">
<button type="submit">登录</button>
</form>
<div class="div-1">你好世界</div>
<!-- 作者:栀子花.451 -->
<!-- 时间:2025-5-2 -->
</body>
</html>
四:清空按钮
<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网页标题</title>
<link rel="icon" href="img/logo.png" type="image/x-icon">
<link rel="shortcut icon" href="img/logo.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="CSS.css">
</head>
<body>
<div class="css">Hellow Word!</div>
<form action="/submit" method="post">
<button type="reset">清除</button>
</form>
<div class="div-1">你好世界</div>
<!-- 作者:栀子花.451 -->
<!-- 时间:2025-5-2 -->
</body>
</html>