第一节 练习代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML表单</title>
</head>
<body>
<form>
<label for="name">用户名:</label>
<input type = "text" id = "name" placeholder = "请输入内容">
<br><br>
<label for="pwd">密码:</label>
<input type = "text" id="pwd" placeholder = "请输入内容">
<br> <br>
<label>爱好:</label>
<input type = "radio" name="gender">男
<input type = "radio" name = "gender"> 女
<input type = "radio" name = "gender"> 其他
<br> <br>
<label>爱好:</label>
<input type = "checkbox" name = "hobby"> 唱歌
<input type = "checkbox" name = "hobby"> 跳舞
<input type = "checkbox" name = "hobby"> 旅游
<input type = "checkbox" name = "hobby"> 篮球
<br><br>
<input type = "submit" value=" 上传">
</form>
</body>
</html>
第二节 前端页面渲染





