帮我写一份HTML5代码
时间: 2024-06-11 20:01:16 浏览: 92
HTML5代码示例如下所示:
```html
<!DOCTYPE html>
<html>
<head>
<title>用户注册页面</title>
</head>
<body>
<form>
<label for="username">用户名:</label>
<input type="text" id="username" name="username"><br><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password"><br><br>
<label for="gender">性别:</label>
<input type="radio" id="male" name="gender" value="male">
<label for="male">男</label>
<input type="radio" id="female" name="gender" value="female">
<label for="female">女</label><br><br>
<label for="hobbies">爱好:</label>
<input type="checkbox" id="hobby1" name="hobbies" value="hobby1">
<label for="hobby1">篮球</label>
<input type="checkbox" id="hobby2" name="hobbies" value="hobby2">
<label for="hobby2">足球</label><br><br>
<label for="message">留言:</label>
<textarea id="message" name="message"></textarea><br><br>
<label for="country">国家:</label>
<select id="country" name="country">
<option value="china">中国</option>
<option value="usa">美国</option>
<option value="uk">英国</option>
</select><br><br>
<input type="submit" value="提交">
<input type="reset" value="重置">
</form>
</body>
</html>
```
阅读全文