【发布时间】:2020-07-01 09:46:50
【问题描述】:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sign Up</title>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<div class="sign-up-form">
<style>
body {
background-image: url("background.jpg");
}
</style>
<img src="./assets/user-Icon.png" alt="User Icon" />
<h1>Sign Up Now</h1>
<form action="/" method="GET">
<input
type="email"
class="input-box"
placeholder="Your E-Mail"
required
/>
<input
type="password"
class="input-box"
placeholder="Your password"
required
/>
<p>
<span
><input type="checkbox" name="Terms and Conditions" id="T&C"
/></span>
I agee to the Terms and Conditions
</p>
<a href="./home.html"
><button type="button" class="signup-btn">Sign Up</button></a
>
<!-- <hr>
<p class="or">OR</p>
<button type="button" class="twitter-btn">Log In with Twitter</button>
<p>Do you have an account <a href="./login.html">Sign In</a></p> -->
</form>
</div>
</body>
</html>
我正在尝试创建一个注册表单,但在单击注册按钮时,它会将我重定向到 主页即使字段为空...我尝试使用所需的标签,但它也不起作用。请帮忙!
【问题讨论】: