.网站中须出现一张表单页面该表单页面应有按钮、输入框、单选框、复选框、下拉框、文本域。还有登录界面
时间: 2023-07-10 07:07:22 浏览: 64
好的,下面是一个示例表单页面和登录界面的代码:
表单页面:
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>示例表单页面</title>
</head>
<body>
<form action="#" method="POST">
<label>姓名:</label>
<input type="text" name="name"><br><br>
<label>性别:</label>
<input type="radio" name="gender" value="male">男
<input type="radio" name="gender" value="female">女<br><br>
<label>爱好:</label>
<input type="checkbox" name="hobby" value="reading">阅读
<input type="checkbox" name="hobby" value="sports">运动
<input type="checkbox" name="hobby" value="travel">旅游<br><br>
<label>城市:</label>
<select name="city">
<option value="beijing">北京</option>
<option value="shanghai">上海</option>
<option value="guangzhou">广州</option>
</select><br><br>
<label>个人简介:</label>
<textarea name="intro" rows="5" cols="30"></textarea><br><br>
<input type="submit" value="提交">
</form>
</body>
</html>
```
登录界面:
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录界面</title>
</head>
<body>
<form action="#" method="POST">
<label>用户名:</label>
<input type="text" name="username"><br><br>
<label>密码:</label>
<input type="password" name="password"><br><br>
<input type="submit" value="登录">
</form>
</body>
</html>
```