编写一个简单的个人基本信息注册页面。要求页面内至少包含用户名、密码、性别(单选)、个人爱好(多选)、个人简介(多行文本)、提交按钮等。
时间: 2023-05-24 07:02:38 浏览: 68
<html>
<head>
<title>个人基本信息注册页面</title>
</head>
<body>
<h1>个人基本信息注册</h1>
<form method="post">
<label for="username">用户名:</label>
<input type="text" id="username" name="username" required><br><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password" required><br><br>
<label for="gender">性别:</label>
<input type="radio" id="male" name="gender" value="male" required>
<label for="male">男</label>
<input type="radio" id="female" name="gender" value="female" required>
<label for="female">女</label><br><br>
<label for="hobby">个人爱好:</label><br>
<input type="checkbox" id="reading" name="hobby[]" value="reading">
<label for="reading">阅读</label>
<input type="checkbox" id="traveling" name="hobby[]" value="traveling">
<label for="traveling">旅游</label>
<input type="checkbox" id="music" name="hobby[]" value="music">
<label for="music">音乐</label><br><br>
<label for="intro">个人简介:</label><br>
<textarea id="intro" name="intro" rows="4" cols="40"></textarea><br><br>
<input type="submit" value="提交">
</form>
</body>
</html>
阅读全文