制作一个静态网站的基本页面index.html
实验代码:<form>
<label for="username">用户名:</label>
<input type="text" id="username" name="username"><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password"><br>
<input type="submit" value="登录">
</form>
<form>
<label for="new_username">新用户名:</label>
<input type="text" id="new_username" name="new_username"><br>
<label for="new_password">新密码:</label>
<input type="password" id="new_password" name="new_password"><br>
<label for="confirm_password">确认密码:</label>
<input type="password" id="confirm_password" name="confirm_password"><br>
<input [type="submit"] value="注册">
</form>
<!-- register.html -->
<!DOCTYPE html>
<html>
<head>
<title>注册页面</title>
<style>
form {
background-color: #f9f9f9;
padding: 20px;
border: 1px solid #ccc;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"] {
width: 100%;
padding: 8px;
margin-bottom: 15px;
border: 1px solid #ccc;
}
input[type="password"] {
width: 100%;
padding: 8px;
margin-bottom: 15px;
border: 1px solid #ccc;
}
input[type="submit"] {
background-color: #008CBA;
color: white;
padding: 10px 15px;
border: none;
cursor: pointer;
}
</style>
</head>
<body>
<form>
<label for="new_username">新用户名:</label>
<input type="text" id="new_username" name="new_username"><br>
<label for="new_password">新密码:</label>
<input type="password" id="new_password" name="new_password"><br>
<label for="confirm_password">确认密码:</label>
<input type="password" id="confirm_password" name="confirm_password"><br>
<input [type="submit"] value="注册">
</form>
</body>
</html>